n = input() print 'O' if n % 4 == 1 or n % 4 == 2 else 'X'