#include <bits/stdc++.h>
using namespace std;
unsigned long long power(unsigned long long a, unsigned long long b) {
  unsigned long long res = 1;
  while (b) {
    if (b & 1) {
      res = res * a;
    }
    a = a * a;
    b = b >> 1;
  }
  return res;
}
int main() {
  unsigned long long cnt_two = 0, cnt_five = 0;
  unsigned long long n, k, temp, ans;
  scanf("%I64d %I64d", &n, &k);
  temp = n;
  while (n % 2 == 0) {
    n /= 2;
    cnt_two++;
  }
  while (n % 5 == 0) {
    n /= 5;
    cnt_five++;
  }
  ans = n * power(2, max(k, cnt_two)) * power(5, max(k, cnt_five));
  printf("%I64d", ans);
  return 0;
}
