Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Only One’s

By MuntasirAK47 · Limits 1s, 256 MB

Samy is very good at math. He is so intelligent that he can multiply
big numbers very fast. One day his friend PJ told him to multiply some numbers and then Samy multiplied all the numbers quite easily.

PJ wrote two integers A and B. The digits of the integers are consisting of only 1’s and A is equal to B (A = B).

Now, it’s your turn to add 1 with each of the digit of Samy's answer.
Hope you can do it. :)

Input

The first line contains two integers A and B. A and B will contain no more than nine digits.

Output

Print the answer in a single line.

Samples

InputOutput
11 11
232
InputOutput
111111111 111111111
234567891098765432

The answers will be no more than 1018.

Discussion

Statistics


98% Solution Ratio

emrul_muEarliest, Jul '19

emrul_muFastest, 0.0s

emrul_muLightest, 0 B

touhidurrrShortest, 60B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.