Wayne is playing video games. While playing, they grind different kinds of enemies. Each enemy drops experience and they defeat of each. How much experience did Wayne get?
Limitations
Sample Input
2
5 4
8 2
Sample Output
36
Sample Explanation
Wayne fought 4 of the 1st enemy, getting xp.
Then they fought 2 of the 2nd enemy, getting xp.
In total, they gained 36 xp.
Comments