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