#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, i, j = 0, t, l, p;
  int k, x, y, h, s;
  x = 0;
  m = 0;
  h = 0;
  std::cin >> n >> k;
  if (k == 0)
    p = n;
  else {
    h = n;
    x = 0;
    y = 0;
    while (h % 2 == 0) {
      h = h / 2;
      x++;
    }
    h = n;
    while (h % 5 == 0) {
      h = h / 5;
      y++;
    }
    x = max(0, k - x);
    y = max(0, k - y);
    p = n * pow(2, x) * pow(5, y);
  }
  std::cout << p << std::endl;
  return 0;
}
