T = int(input()) for _ in range(T): X,Y=map(int, input().split()) "Yes" if X>=Y or X>=5 else "No"