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