#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long n, sum = 1, x;
  int k, p, t;
  set<int> s;
  vector<int> v;
  cin >> n >> k;
  if (k == 0) {
    cout << n << "\n";
    return 0;
  }
  while (n % 2 == 0) {
    v.push_back(2);
    s.insert(2);
    n = n / 2;
  }
  for (int i = 3; i <= sqrt(n); i = i + 2) {
    while (n % i == 0) {
      v.push_back(i);
      s.insert(i);
      n = n / i;
    }
  }
  if (n > 2) {
    v.push_back(n);
    s.insert(n);
  }
  p = count(v.begin(), v.end(), 2);
  t = count(v.begin(), v.end(), 5);
  sum = round(pow(10, k));
  if (p >= k && t < k) {
    x = round(pow(2, p - k));
    sum *= x;
  } else if (t >= k && p >= k) {
    x = round(pow(2, p - k)) * round(pow(5, t - k));
    sum *= x;
  } else if (t >= k && p < k) {
    x = round(pow(5, t - k));
    sum *= x;
  }
  s.erase(2);
  s.erase(5);
  for (auto i = s.begin(); i != s.end(); i++) {
    p = count(v.begin(), v.end(), *i);
    x = round(pow(*i, p));
    sum *= x;
  }
  cout << sum << "\n";
}
