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