The Power Rule

Worth 3 point(s) - Runtime Limit: 1 seconds


Calculus is the study of change. That sounds kind of vague and absurd but it is unnecessary to understand for this problem. Calculus uses two operations called derivatives and integrals. This problem will focus on the derivative and specifically how you take the derivative of a function axb which is easily done with the POWER RULE which surely lives up to its name. The derivative of this kind of function is abxb-1. After this contest you may be interested to do some research into what a derivative even is now that you know how to calculate one.

The first line contains an integer N, the number of datasets. Each of the N following lines will contain two integers, a and b.

Output the derivative with the notation “dy/dx = Cx^D” where C is the coefficient and D is the exponent of the function. Do not simplify the equation at all. This means exponents and coefficients of 0 and 1 should be printed.

Sample Input

3 2
1 1

Sample Output

dy/dx = 6x^1
dy/dx = 1x^0