#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, h, i, a, d, p;
  cin >> n >> k;
  d = k;
  p = k;
  a = n;
  while (a % 2 == 0 && d > 0) {
    a = a / 2;
    d--;
  }
  while (a % 5 == 0 && p > 0) {
    a = a / 5;
    p--;
  }
  while (d > 0) {
    n *= 2;
    d--;
  }
  while (p > 0) {
    n *= 5;
    p--;
  }
  cout << n;
  return 0;
}
