n = read_line.to_i64 puts n.to_s(2).includes?('0') ? "O" : "X"