The first line contains an integer $t$: the number of test cases ($1 \le t \le 10^4$).
The following lines describe the test cases.

Each test case is given on a separate line containing two integers $p$ and $m$: the number of pairs of socks and the number of single socks in the drawer ($1 \le p \le 10^6$; $0 \le m \le 10^6$).
