Program If27;
Var
y: Integer;
x: Real;
Begin
ReadLn(x);
y := -1;
While (x >= 2) Do
x := x - 2;
If (x < 0) Then
y := 0
Else If (x >= 0) And (x < 1) Then
y := 1;
WriteLn('f(x) = ', y);
End.
Program If27;
Var
y: Integer;
x: Real;
Begin
ReadLn(x);
y := -1;
While (x >= 2) Do
x := x - 2;
If (x < 0) Then
y := 0
Else If (x >= 0) And (x < 1) Then
y := 1;
WriteLn('f(x) = ', y);
End.