import Data.Bool main = readLn >>= putStrLn . bool "X" "O" . (\x -> if x==1 || even x || mod x 4 == 1 then True else False)