#include <bits/stdc++.h>
int main() {
  long long int n, k, x, a = 0, b = 0, i;
  scanf("%lld %lld", &n, &k);
  x = n;
  while (x % 2 == 0) {
    a++;
    x = x / 2;
  }
  while (x % 5 == 0) {
    b++;
    x = x / 5;
  }
  if (a < k) {
    for (i = 1; i <= k - a; i++) {
      n = n * 2;
    }
  }
  if (b < k) {
    for (i = 1; i <= k - b; i++) {
      n = n * 5;
    }
  }
  printf("%lld", n);
  return 0;
}
