a=int(input()) c=1 b=2 if a==1: print(0) else: while b