#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, a;
  cin >> i >> j;
  a = i;
  int t = 0, f = 0;
  while (i % 2 == 0) {
    t++;
    i /= 2;
  }
  while (i % 5 == 0) {
    f++;
    i /= 5;
  }
  for (int x = 0; x < (j - t); x++) {
    a *= 2;
  }
  for (int x = 0; x < (j - f); x++) {
    a *= 5;
  }
  cout << a << endl;
}
