#P6745. 『MdOI R3』Number

『MdOI R3』Number

Problem Description

In real life, we sometimes encounter some special numbers. If we write them in a special form, they become easier to remember and use. For example, 109+710^9+7 is very common. Compared with 10000000071000000007, it is easier for contestants to read without counting the 00's, and it avoids the precision loss of scientific notation.

Now you are given a number of the form 10k+x10^{k}+x. Please convert it back to the usual written form.

Input Format

One line with two integers k,xk,x.

Output Format

Output one integer on one line, which is 10k+x10^k+x.

9 7
1000000007

Hint

[Sample Explanation].

109+7=100000000710^9+7=1000000007.

For more samples, please get them here.

[Constraints].

This problem uses bundled tests. In other words, you can only get the score for a subtask if you pass all test points in that subtask.

Subtask ID x<x< kk\le Special Property Score
1 1010 99 12
2 500500 15
3 101810^{18} 1818 8
4 500500 k18k\ge18 25
5 40

For all testdata, 0x<10180\le x<10^{18}, 0k5000\leq k\leq 500.

Translated by ChatGPT 5