program sa;
uses crt;
var x:integer;
begin
clrscr;
readln(x);
if x>0 then x:=x+1;
if x<0 then x:=x-2;
if x=0 then x:=10;
writeln(x);
readln;
end.