#include <bits/stdc++.h>
using namespace std;
int64_t gcd(int64_t a, int64_t b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int64_t n, k;
  cin >> n >> k;
  int64_t st = 1;
  for (int64_t i = 0; i < k; i++) {
    st *= 10;
  }
  cout << n * st / gcd(st, n) << endl;
}
