var
  x, y: real;
begin
  Writeln('Введите x: ');
  x := ReadReal;
  
  Writeln('y = |x - 2| = ', Abs(x - 2));
end.