x=list (map(int,input().split())) t=x[0] for i in range(1,t+1): if x[i*2-1]>4 or x[i*2-1]>=x[i*2]: print ("Yes") else: print ("No")