#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, i = 2;
  cin >> n >> k;
  long long ans = n, s = 1;
  while (k--) {
    s = s * 10;
  }
  while (ans % s != 0) {
    ans = n * i;
    i++;
  }
  cout << ans << endl;
  return 0;
}
