A math teacher at one of Japan's top schools, Chin Pu, introduced his students to the -ary numeral system.
Recall that a number b_k\ldots b_2 b_1 b_0, where b_i = 0 or b_i = 1 for any , is called the -ary representation of a number if it satisfies the equation n = b_k \cdot (-2)^k + \ldots + b_2 \cdot (-2)^2 + b_1 \cdot (-2)^1 + b_0 \cdot (-2)^0.
To reinforce the material, Chin Pu gave his favorite puzzle to the students: he writes a sequence of length on the board, consisting of zeros and ones (possibly with leading zeros), and asks the students to write underneath it a sequence of length , also consisting of zeros and ones (possibly with leading zeros), such that the sum of the -ary numbers and represented by and has the maximal possible number of ones in its -ary representation. Such a sequence is called a valid solution to the puzzle.
Among all valid solutions, Chin Pu asks to find the "maximum" one, meaning the one representing the greatest -ary number.
Because for sufficiently large the puzzle can be rather complex, and Chin Pu needs to check the correctness of his students' solutions, he asks you to write a program that solves the puzzle as described above.
A string describing the sequence written by the teacher. The string contains from to characters, each being either '0' or '1'.
A string of the same length as the input string. The string should specify the "maximum" sequence that satisfies the teacher's condition.
Example 1