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