Submit | All submissions | Best solutions | Back to list |
LFBKE - Loan for bike |
Noyon wants to buy a Motor Bike, but he needs a loan as he is hard up. So, he went to two banks for loan. The first bank lends imposing simple interest while the second one imposes compound interest.
Noyon collects the rate of interest of the banks. But he is weak in math. Given the rates of interest, loan amount and years due, help him finding the bank with lowest interest amount.
Input
The first line contains a number t (t <= 1000) the number of test cases.
The next t lines contains numbers p, y, r1, r2 (1 <= p <= 1000000000, 1 <= y <= 50, 3% <= r1, r2 <= 50%) where p denotes the loan amount and y denotes the years due, r1 denotes the rate of interest of first bank and r2 denotes the second.
Output
Print n lines. Each line containing “Bank 1” if interest amount is lowest for bank 1, “Bank 2” for bank 2. Print “Confused huh!” if the interest amount is the same. (Without quotes) for each test case.
Example
Input: 4 10000 5 10 15 2000 4 3 5 100 3 5 4 12345 3 9 7 Output: Bank 1 Bank 1 Bank 2 Bank 2
Added by: | Sarwar |
Date: | 2017-06-11 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |