#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    int two = 0, five = 0;
    long long g = n;
    while (g % 2 == 0) {
      two++;
      g = g / 2;
    }
    while (g % 5 == 0) {
      five++;
      g = g / 5;
    }
    if (two >= k && five >= k) {
      cout << n;
      return 0;
    } else {
      cout << n *
                  (long long)pow(
                      (long long)2,
                      max((long long)k - (long long)two, (long long)0)) *
                  (long long)pow(
                      (long long)5,
                      max((long long)k - (long long)five, (long long)0));
      return 0;
    }
  }
  return 0;
}
