n=int(input()) if n%2==0: m=n//2 print(2) else: m=n//2+1 print(1)