#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long n2 = n;
  long long pow5 = 0;
  while (n2 % 5 == 0) {
    n2 /= 5;
    ++pow5;
  }
  n2 = n;
  long long pow2 = 0;
  while (n2 % 2 == 0) {
    n2 /= 2;
    ++pow2;
  }
  long long rem5 = max(0ll, k - pow5);
  long long rem2 = max(0ll, k - pow2);
  cout.precision(30);
  cout << n * pow(5, rem5) * pow(2, rem2);
  return 0;
}
