Problem5516--ABC200 —— B - 200th ABC-200

5516: ABC200 —— B - 200th ABC-200

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

You are given an integer $N$.
Do the following operation $K$ times on it and print the resulting integer.
  • If $N$ is a multiple of $200$, divide it by $200$.
  • Otherwise, see $N$ as a string and append $200$ to the end of it.
    • For example, $7$ would become $7200$ and $1234$ would become $1234200$.

Input

give two integer $N$ and $K$.

Output

Print the answer as an integer.

Constraints

All values in input are integers.
$1≤N≤10^5$
$1≤K≤20$

Sample 1 Input

2021 4

Sample 1 Output

50531
Applying the operation on $N=2021$ results in N becoming $2021→2021200→10106→10106200→50531$.

Sample 2 Input

40000 2

Sample 2 Output

1

Sample 3 Input

8691 20

Sample 3 Output

84875488281

HINT

相同题目:ABC200

Source/Category