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