#include <bits/stdc++.h>
using namespace std;
long long gcd(long long n, long long m) {
  return (n % m == 0) ? m : gcd(m, n % m);
}
int main() {
  long long a, b;
  while (~scanf("%lld%lld", &a, &b)) {
    long long m = 1;
    while (b--) {
      m *= 10;
    }
    long long res = a * m / gcd(a, m);
    printf("%lld\n", res);
  }
  return 0;
}
