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