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