T=int(input()) import math for _ in range(T): N,A,B=map(int,input().split()) if A