#include <bits/stdc++.h>
using namespace std;
long long GCD(long long a, long long b) {
  long long c;
  while (b) {
    c = a % b;
    a = b;
    b = c;
  }
  return a;
}
int main() {
  long long n, t = 1, k;
  cin >> n >> k;
  for (long long i = 0; i < k; i++) t *= 10;
  cout << (n / GCD(t, n)) * t;
}
