#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int n;
  int k;
  cin >> n >> k;
  int i = 0, j = 0;
  for (int m = n; m % 2 == 0; i++) m /= 2;
  for (int m = n; m % 5 == 0; j++) m /= 5;
  for (i = i; i < k; i++) n *= 2;
  for (j = j; j < k; j++) n *= 5;
  cout << n;
  return 0;
}
