You are given $$$2$$$ positive integers $$$x$$$, $$$y$$$, and your task is to find a positive integer $$$z$$$ which satisfies:
The first line contains the number of testcases $$$T$$$ ($$$1 \le T \le 10^4$$$).
For each testcase,
The first and only line contains two integers $$$x$$$ and $$$y$$$ ($$$1 \le x,y \le 10^{10},x+2 \le y$$$).
For each testcase, if the answer exists, output your answer in one line. Otherwise, output $$$-1$$$.
31 3115 1252184 2200
2 117 -1