The input consists of several test cases. The first
line gives the number of test cases,T(1≤T≤106).
For each test case, the input contains one line
with 8 integers,
.
For each test case, output one line containing one
integer, representing the answer.