#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, k;
  cin >> n >> k;
  long long m = n;
  long long t = 0, f = 0;
  while (m % 2 == 0) {
    t++;
    m /= 2;
  }
  while (m % 5 == 0) {
    f++;
    m /= 5;
  }
  for (long long i = t; i < k; i++) {
    n *= 2;
  }
  for (long long i = f; i < k; i++) n *= 5;
  cout << n;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) solve();
  return 0;
}
