Fermat's Last Theorem

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

As you probably know, for all positive integers aa, bb, cc and nn with n3n \ge 3 the following inequality holds: an+bncna^n + b^n \neq c^n. But all existing proofs of this fact are hard to verify, so a group of software engineers has decided to write their own proof that will be, in their opinion, easier to verify.

This group has written a program that iterates over all quadruples of positive integers (a,b,c,n)(a, b, c, n) such that n3n \ge 3, in increasing order of the maximums of its elements, and in case of equality of maximums --- in the lexicographical order.

Thus first the quadruple (1,1,1,3)(1, 1, 1, 3) will be considered, then the quadruple (1,1,2,3)(1, 1, 2, 3), and so on. And, for example, the quadruple (3,3,3,3)(3, 3, 3, 3) will be followed by the quadruple (1,1,1,4)(1, 1, 1, 4).

For each quadruple the program compares the values an+bna^n + b^n and cnc^n, and prints the corresponding inequality: an+bn>cna^n + b^n > c^n or an+bn<cna^n + b^n < c^n.

Now the software engineers want to verify their proof. They ask you to repeat their calculations and output the inequalities printed by their program, from the ll-th to the rr-th one, inclusive.

입력

The first line contains two integers ll and rr (1lr10121 \le l \le r \le {10}^{12}; rl104r - l \le {10}^4).

출력

Output the part of the printed proof, from the ll-th inequality to the rr-th one, each on a separate line. To denote exponentiation, use a caret ('^', the ASCII character with code 94). Don't output any spaces.