+ محدودیت زمان: ۱ ثانیه
+ محدودیت حافظه: ۲۵۶ مگابایت
----------
Ali is a member of Triangulum team and is really smart. But you know, nothing in this world can have all goodies. Goldfish’s memory works better than his(!!). One time he solved hardest problem of a contest, when Mohsen asked him “How did you solve it?”, he replied with: “I solved it? did i? Are you sure i solved it? No i did not!”, he couldn’t remember. Because of his memory, he always forgets where he left his cellphone. Farzad & Amin - his teammates - always have to wait for him to find his cellphone. But Farzad & Amin are in hurry so they need to know how long they should wait. There are N rooms in Shahid Beheshti University where Ali may left his cellphone, He starts looking. it takes $t_1$ seconds to search a room and $t_2$ seconds to go from a room to another one. Ali is not lucky at all, he has worst luck on earth. He always finds his cellphone in last room. Can you help Farzad & Amin to figure out how long they should wait?
# ورودی
First line of input contains an integer $T(1 \le T \le 106)$, indicating number of test cases. Each test case contains three integers in a line, $N (1 ≤ N ≤ 1000), t_1 , t_2 (1 ≤ t_1, t_2 ≤ 100)$ indicating number of rooms, time needed to search a room and time needed to change a room respectively.
# خروجی
For each test case print an integer in a line indicating time Farzad & Amin have to wait.!
# مثالها
## ورودی نمونه ۱
```
2
1 10 2
10 9 3
```
## خروجی نمونه ۱
```
10
117
```