N = int(input()) if N%2 == 0: ans = 2 else: ans = 1 print(ans)