var x,y: integer;
begin
readln(x);
if x>1 then y:=x-1
else if x<-1 then y:=x+1
else y:=0;
write(y);
end.
var x,y: integer;
begin
readln(x);
if x>1 then y:=x-1
else if x<-1 then y:=x+1
else y:=0;
write(y);
end.