#include <bits/stdc++.h> using namespace std; int k; long long n,s,temp=INT_MAX; int main(){ cin>>n>>k; s=pow(10,k); long long k=n; while(n%5==0||n%2==0){ if(s*temp<=k) break; if(n%5==0) n/=5; if(n%2==0) n/=2; temp=n; } cout<<n*s; return 0; }