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