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