N = gets.to_i ans = if N % 4 == 3 "X" else "O" end puts ans