n = read_line.to_i64 puts n % 4 == 3 ? "X" : "O"