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