For two given integers and find
where
There are several test cases. Each case is a separate line that contains two positive integers and . The last line contains two zeros and should not be processed.
For each test case print the required value in a separate line.