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