#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  cin >> n >> k;
  int cnt2 = 0, cnt5 = 0, temp = 2;
  while (1) {
    if (n % temp == 0) {
      temp *= 2;
      ++cnt2;
    } else
      break;
  }
  temp = 5;
  while (1) {
    if (n % temp == 0) {
      temp *= 5;
      ++cnt5;
    } else
      break;
  }
  long long int zero = 0;
  int cnt1 = max(zero, k - cnt2);
  while (cnt1--) {
    n *= 2;
  }
  int cnt = max(zero, k - cnt5);
  while (cnt--) {
    n *= 5;
  }
  cout << n;
  return 0;
}
