def no;puts "O";exit;end n = gets.to_i n.bit_length.times{|k| l = 1<< k r = [l<< 1].min #p [l,r,((n+1)/l)%r] no if (((n+1)/l)%r).odd? } puts "X";exit