You live in a city that is modeled as a rectangular grid. Each cell in the city is a unit square, and the grid follows a standard Cartesian coordinate system where the $$$x$$$-axis increases from left to right and the $$$y$$$-axis increases from bottom to top.
A cyclone named Gigantomachia has formed at the bottom-left corner of the city, located at the point $$$(0, 0)$$$. According to meteorological forecasts, the cyclone will travel in a straight line towards the top-right corner of the city, located at the point $$$(x, y)$$$. The cyclone is immensely powerful, and every cell that it enters along its path will be damaged.
Your task is to determine the number of cells in the city that will be damaged by the cyclone.
The first line of the input contains a single integer $$$t$$$ ($$$1 \le t \le 10^5$$$) — the number of test cases.
Each test case consists of a single line containing two space-separated integers $$$x$$$ and $$$y$$$ ($$$1 \le x, y \le 10^9$$$) — the width and height of the city.
For each test case, output a single integer in a line — the number of cells that will be damaged by the cyclone.
22 35 5
45
Illustrations of the sample test cases:
| Name |
|---|


