#include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, 0, 0, 1};
const int dy[] = {0, -1, 1, 0};
int main() {
  int n, k;
  cin >> n >> k;
  int cnt2, cnt5;
  cnt2 = cnt5 = 0;
  while (n % 2 == 0) {
    n /= 2;
    cnt2++;
  }
  while (n % 5 == 0) {
    n /= 5;
    cnt5++;
  }
  while (cnt2 > k) {
    n *= 2;
    cnt2--;
  }
  while (cnt5 > k) {
    n *= 5;
    cnt5--;
  }
  cout << n;
  for (int i = 0; i < k; i++) {
    cout << 0;
  }
  cout << endl;
  return 0;
}
