#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int main() {
  long long n, k;
  cin >> n >> k;
  long long temp = 1;
  for (int i = 1; i <= k; i++) {
    temp *= 10;
  }
  long long g;
  if (temp > n)
    g = gcd(temp, n);
  else
    g = gcd(n, temp);
  cout << temp * n / g << endl;
  return 0;
}
