n = int(input()) print(1 if n == n & -n else 3 - n % 2)