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