SP16214 CODPABBU - Pabbu-pneumonia
Description
There is a biology experiment going in the biotech. lab of the "very prestigious" DTU.The students there are trying to study the reproduction patterns of a newly discovered species of virus pabbu-pneumoniae ;)
Input Format
First line of input will have number 'T', the number of test cases. \[ T
Output Format
For each test case print the required answer in a separate line.
NOTE - The value of a , d , r , n & m will be more than 0 and less than 10^8.