#include <bits/stdc++.h>
using namespace std;
long long NOD(long long a, long long a1) {
  if (a == 0 || a1 == 0)
    return a > a1 ? a : a1;
  else if (a > a1)
    return NOD(a %= a1, a1);
  else
    return NOD(a, a1 %= a);
}
int main() {
  long long n, n1, k = 1, i;
  cin >> n >> n1;
  for (i = 1; i <= n1; i++) k *= 10;
  cout << (n * k) / NOD(n, k);
}
