Технокубок 2018 - Отборочный Раунд 1
A
k-rounding
Codeforces
1100
原题
←B →
翻译中…

For a given positive integer $*n*$ denote its $*k*$-rounding as the minimum positive integer $*x*$, such that $*x*$ ends with $*k*$ or more zeros in base $10$ and is divisible by $*n*$.

翻译中…

For example, $4$-rounding of $375$ is $375·80 = 30000$. $30000$ is the minimum integer such that it ends with $4$ or more zeros and is divisible by $375$.

翻译中…

Write a program that will perform the $*k*$-rounding of $*n*$.

翻译中…

Input

翻译中…

The only line contains two integers $*n*$ and $*k*$ ($1 ≤ *n* ≤ 10^{9}$, $0 ≤ *k* ≤ 8$).

翻译中…

Output

翻译中…

Print the $*k*$-rounding of $*n*$.

翻译中…

样例

Input #1
375 4
Output #1
30000
InputCopy OutputCopy
Input #2
10000 1
Output #2
10000
InputCopy OutputCopy
Input #3
38101 0
Output #3
38101
InputCopy OutputCopy
Input #4
123456789 8
Output #4
12345678900000000
InputCopy OutputCopy
题目信息
题号
858A
时间限制
1 s
内存限制
256 MB
标签
暴力
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。