""" """ import sys from sys import stdin N = int(stdin.readline()) if N % 2 == 0: print (2) else: print (1)