gets.to_i.times do n = gets.split(" ").map{|i| i.to_i} puts (n[0] > 4 || n[0] >= n[1]) ? "Yes" : "No" end