n=int(input()) for i in range(n): a,b=map(int,input().split()) if a>=10 or b>=20: print("True") else: print("False")