#include <bits/stdc++.h>
using namespace std;
long long int lcm(long long int a, long long int b) {
  long long int large = max(a, b);
  long long int small = min(a, b);
  for (long long int i = large;; i = i + large) {
    if (i % small == 0) {
      return i;
    }
  }
}
int main() {
  long long int n;
  long long int k;
  cin >> n >> k;
  long long int p = pow(10, k);
  long long int answer = lcm(n, p);
  cout << answer;
  return 0;
}
