Four Chips (Easy)
There is a n×1 board. Its cells are numbered with integers from 1 to n. First four cells have indistinguishable chips in them. In one turn you can move one chip to the neighbouring cell or move it symmetrically relatively any other chip (i.e. if you move a chip in cell 10 symmetrically relative to the chip in cell 13 it will end up in cell 16), given that the chip won't leave the board and each cell will have no more than one chip. You need to determine the minimum number of turns needed to reach a certain configuration of chips.
Input
The first line of input contains number T (1 ≤ T ≤ 10000) — the amount of test cases. Next T lines consist of four integers a_1, a_2, a_3 and a_4 (1 ≤ a_1, a_2, a_3, a_4 ≤ n, n = 20) — the numbers of cells where the chips should be in the final configuration.
Output
For each test case print single integer - the answer to the problem in the statement.