#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, p, q, x = 0, y = 0, ans;
  cin >> n >> k;
  p = q = n;
  while (p % 2 == 0) {
    p /= 2;
    x++;
  }
  while (q % 5 == 0) {
    q /= 5;
    y++;
  }
  p = k - x;
  q = k - y;
  if (p < 0) p = 0;
  if (q < 0) q = 0;
  ans = n * pow(2, p) * pow(5, q);
  cout << ans;
  return 0;
}
