for t in range(int(input())): x, y = map(int, input().split()) print('yEs' if x >= 30*y else 'No')