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