The mean of three integers , and is \dfrac{a + b + c}{3}. The median of three integers is the middle number if they are arranged in non-decreasing order.
Each test case is given in a single line that contains two integers and (1 \leq a \leq b \leq 10^9). The last test case is followed by a line containing two zeros, which should not be processed.
For each test case, output one line containing the minimum possible integer such that the mean and the median of , and are equal.
Example 1