# N%2 ==0, ans = 1 # N%2==1, ans = Nใงใ„ใ„ใ‹ N = int(input()) if N%2 == 0: ans = 1 else: ans = N print(ans)