program pil_3_29_e(input,output);
var
  n : real;
  res : boolean;
begin
  write('Input number : ');
  read(n);
  res := false;
  if trunc(n*10)=trunc(n)*10 then res := true;
  n := n * 10;
  if trunc(n*10)=trunc(n)*10 then res := true;
  n := n * 10;
  if trunc(n*10)=trunc(n)*10 then res := true;

  WriteLn(res);
end.
