#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll md = 1000000007;
ll exp(ll a, ll b) {
  ll r = 1ll;
  while (b > 0) {
    if (b & 1) {
      r = r * (a % md);
      r = (r + md) % md;
    }
    b >>= 1;
    a = (a % md) * (a % md);
    a = (a + md) % md;
  }
  return (r + md) % md;
}
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
ll Min(ll a, ll b) {
  if (a < b) return a;
  return b;
}
ll Max(ll a, ll b) {
  if (a > b) return a;
  return b;
}
const double PI = 3.1415926535897932238460;
ll const Mxn = 1e9;
int main() {
  long long n;
  int k;
  cin >> n >> k;
  long long a = n;
  int cnt5 = 0;
  while (a % 5 == 0) a /= 5, cnt5++;
  a = n;
  int cnt2 = 0;
  while (a % 2 == 0) a /= 2, cnt2++;
  while (cnt5 < k) n *= 5, cnt5++;
  while (cnt2 < k) n *= 2, cnt2++;
  cout << n << "\n";
}
