#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long ans;
  unsigned long long num2 = 0, num5 = 0;
  unsigned long long n, k;
  cin >> n >> k;
  while (n % 2 == 0 && n / 2 > 0) {
    n /= 2;
    num2++;
  }
  while (n % 5 == 0 && n / 5 > 0) {
    n /= 5;
    num5++;
  }
  unsigned long long num22 = pow(2, num2), num55 = pow(5, num5);
  if (k > num2)
    num2 = k - num2;
  else
    num2 = 0;
  if (k > num5)
    num5 = k - num5;
  else
    num5 = 0;
  num22 *= pow(2, num2);
  num55 *= pow(5, num5);
  ans = n * num22 * num55;
  cout << ans;
  return 0;
}
