#include <bits/stdc++.h>
using namespace std;
int main() {
  srand(time(NULL));
  long long x, y;
  cin >> x >> y;
  long long cnt2 = 0, cnt5 = 0;
  long long b = x;
  while (x % 2 == 0) cnt2++, x /= 2;
  while (x % 5 == 0) cnt5++, x /= 5;
  x = b;
  while (cnt2 < min(cnt5, y)) x *= 2, cnt2++;
  while (cnt5 < min(cnt2, y)) x *= 5, cnt5++;
  while (cnt2 < y) x *= 10, cnt2++;
  cout << x;
}
