program test (out);
var max,x: integer;
begin
  max := 44;
  readln(x);
  if x > max then
     x := x - max
  else
     x := max - x;
  writeln(x) 
end.
