The first line contains an integer P (1≤P≤100), the number of data sets. Each of the next P lines contains one linear equation. Every equation consists of ax, a single space, the sign +, a single space, b, a single space, the sign =, a single space, and c, in that order:
ax + b = c
Here x is the variable, and a, b, c are non-negative integers (0≤a,b,c≤109). The coefficient a is always written as a number, even when it is 0 or 1.