#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long n1 = n;
  int mn = 1;
  int c1 = 0;
  while (n % 5 == 0) {
    n /= 5;
    ++c1;
  }
  int c2 = 0;
  while (n % 2 == 0) {
    c2++;
    n /= 2;
  }
  for (int i = 0; i < k; ++i) {
    mn *= 10;
  }
  while (c1 > k) {
    n *= 5;
    --c1;
  }
  while (c2 > k) {
    n *= 2;
    --c2;
  }
  if (n * mn % n1 == 0) {
    cout << n * mn;
  } else {
    cout << n1;
  }
}
