N = int(input()) print('X' if N % 4 == 3 else 'O')