#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, k, m, l, a, b, f, d;
  cin >> n >> k;
  long long kek = n;
  double cnt1 = 0, cnt2 = 0;
  while (kek % 2 == 0) {
    kek /= 2;
    cnt1++;
  }
  kek = n;
  while (kek % 5 == 0) {
    kek /= 5;
    cnt2++;
  }
  cout.precision(0);
  cout << fixed;
  cnt1 = max(0.0, k - cnt1);
  cnt2 = max(0.0, k - cnt2);
  cout << n * pow(2, cnt1) * pow(5, cnt2);
  return 0;
}
