#include <bits/stdc++.h>
using namespace std;
long gcd(long a, long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  long n, k;
  cin >> n >> k;
  long lcm2 = 1;
  while (k--) lcm2 *= 10;
  long g;
  if (lcm2 > n)
    g = gcd(lcm2, n);
  else
    g = gcd(n, lcm2);
  cout << (n / g);
  while (lcm2 != 1) {
    cout << "0";
    lcm2 /= 10;
  }
  return 0;
}
