#include <bits/stdc++.h>
long long gcd(long long a, long long b) { return a ? gcd(b % a, a) : b; }
int main() {
  long long n, k;
  scanf("%lld %lld", &n, &k);
  k = pow(10, k);
  printf("%lld\n", n * (k / gcd(k, n)));
  return 0;
}
