begin repeat var n:word;read(n);writeln(n+1or 1)until 1=0end.