import io import sys from collections import defaultdict, deque, Counter from itertools import permutations, combinations, accumulate from heapq import heappush, heappop from bisect import bisect_right, bisect_left from math import gcd import math _INPUT = """\ 6 3 4 2 1 3 3 3 6 1 1 """ def input(): return sys.stdin.readline()[:-1] def solve(test): t=int(input()) for _ in range(t): D,a,b=map(int, input().split()) if a