T = gets.to_i

T.times do
  x, y = gets.split.map(&:to_i)

  if x >= y || x >= 5
    puts 'Yes'
  else
    puts 'No'
  end
end