program main implicit none integer::N read *,N if(MOD(N,2).eq.0) then print '("O")' else print '("X")' end if end program main