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