← Home
package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)

	if !scanner.Scan() {
		return
	}
	t, _ := strconv.Atoi(scanner.Text())

	writer := bufio.NewWriter(os.Stdout)
	defer writer.Flush()

	for i := 0; i < t; i++ {
		scanner.Scan()
		x, _ := strconv.Atoi(scanner.Text())
		scanner.Scan()
		y, _ := strconv.Atoi(scanner.Text())

		if x >= y {
			fmt.Fprintln(writer, "YES")
		} else {
			if x == 1 {
				fmt.Fprintln(writer, "NO")
			} else if x == 2 || x == 3 {
				if y <= 3 {
					fmt.Fprintln(writer, "YES")
				} else {
					fmt.Fprintln(writer, "NO")
				}
			} else {
				fmt.Fprintln(writer, "YES")
			}
		}
	}
}