The input consists of several test cases and is terminated by end-of-file.Each test case contains two integers n and m.
For each test case, print an integer which denotes the result.
1 2 2 2 1000 1000
6 20 540949876
* 1 ≤ n, m ≤ 103* The number of test cases does not exceed 105.