#include <bits/stdc++.h>
using namespace std;
int n, k;
long long sum = 1;
int main() {
  cin >> n >> k;
  int t = k;
  while (t--) {
    sum *= 10;
  }
  int p = 0;
  while (n % 2 == 0) {
    if (p >= k) break;
    n /= 2;
    p++;
  }
  p = 0;
  while (n % 5 == 0) {
    if (p >= k) break;
    n /= 5;
    p++;
  }
  sum *= n;
  cout << sum << endl;
  return 0;
}
