#include <bits/stdc++.h>
long long n;
int k;
int num2 = 0, num5 = 0, num0 = 0;
using namespace std;
long long q_power(int a, int x) {
  long long tmpans = 1;
  while (x > 0) {
    if (x & 1) tmpans *= a;
    a *= a;
    x /= 2;
  }
  return tmpans;
}
int Min(int a, int b) { return a > b ? b : a; }
int Max(int a, int b) { return a > b ? a : b; }
void spl(long long x) {
  while (x % 2 == 0) {
    x /= 2;
    num2++;
  }
  while (x % 5 == 0) {
    x /= 5;
    num5++;
  }
}
int main() {
  scanf("%I64d%d", &n, &k);
  spl(n);
  if (num2 != 0 && num5 != 0) num0 = Min(num2, num5);
  if (num0 >= k)
    printf("%I64d\n", n);
  else if (Max(num2, num5) >= k) {
    if (num2 > num5) {
      printf("%I64d\n", n * q_power(5, k - num5));
    } else {
      printf("%I64d\n", n * q_power(2, k - num2));
    }
  } else {
    printf("%I64d\n", n * q_power(2, k - num2) * q_power(5, k - num5));
  }
  return 0;
}
