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