#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int n2 = n;
  if (n % 5 != 0 && n % 2 != 0) {
    cout << n;
    for (int i = 0; i < k; i++) cout << '0';
    return 0;
  }
  int fact2 = 0, fact5 = 0;
  while (n % 2 == 0) {
    n /= 2;
    fact2++;
  }
  while (n % 5 == 0) {
    n /= 5;
    fact5++;
  }
  k -= min(fact2, fact5);
  if (k <= 0) {
    cout << n2;
    return 0;
  }
  int t = min(fact2, fact5);
  fact2 -= t;
  fact5 -= t;
  long long ans = 1;
  if (fact2 == 0) {
    while (fact5 > 0 && k > 0) {
      ans *= 2;
      k--;
      fact5--;
    }
    while (k--) {
      ans *= 10;
    }
    cout << ans * n2;
  } else {
    while (fact2 > 0 && k > 0) {
      ans *= 5;
      k--;
      fact2--;
    }
    while (k--) ans *= 10;
    cout << ans * n2;
  }
  return 0;
}
