#include <bits/stdc++.h>
using namespace std;
long long n, k, k1, k2, m;
int main() {
  cin >> n >> k;
  m = n;
  while (m % 2 == 0) {
    k1++;
    m /= 2;
  }
  while (m % 5 == 0) {
    k2++;
    m /= 5;
  }
  for (int i = 1; i <= max(0ll, k - k1); ++i) {
    n *= 2;
  }
  for (int i = 1; i <= max(0ll, k - k2); ++i) {
    n *= 5;
  }
  cout << n;
}
