Addition in Different Bases

No attempts yetTime limit1sMemory limit128 MB

Problem

Young pupils have to practise mathematics from an early age. Material such as solving systems of differential equations or integrating over multi-dimensional spaces is still far too hard for them, so something simpler has to be taught. After a long debate the teachers settled on plain addition, carried out in a range of number bases.

Write the program that marks the pupils' work.

Input

The input consists of several blocks. Every block except the last one begins with a line holding the base zz, an integer with 1z351 \le z \le 35. The last block begins with a line holding 00 and is not processed.

The second line of each block holds two non-negative integers xx and yy separated by a space, written in the standard notation of base zz. In a base larger than 1010, a digit whose value is greater than 99 is written with a letter: A, B, C, and so on.

Base 11 is the exception. Only the digit 1 is used there, and the number of digits is the value of the number. Zero is written as a one-digit number whose single digit is 0.

No number in the input carries extra leading zeros. Each number has at most 1000 digits.

Output

Print one line for every block of the input. On that line print xx and yy joined by a space, a + and a space, followed by a space, an =, a space and the sum of xx and yy. All three numbers are written in the standard notation of base zz.