#include <bits/stdc++.h>
using namespace std;
int int_pow(int n, int x) {
  int res = 1;
  for (int i = 0; i < x; ++i) res *= n;
  return res;
}
int main() {
  int n, k;
  cin >> n >> k;
  int c2 = 0, c5 = 0;
  while (n % 2 == 0) {
    ++c2;
    n /= 2;
  }
  while (n % 5 == 0) {
    ++c5;
    n /= 5;
  }
  c2 = max(c2, k);
  c5 = max(c5, k);
  cout << n * 1ll * int_pow(2, c2) * int_pow(5, c5);
}
