#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
//using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define mydeb(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
//#define mydeb(fmt, ...) 

int main()
{
	
    uint64_t n;
    int k;
    cin >> n >> k;

    rep(i,k)
    {
        if ((n%200)==0)
        {
            n/=200;
        }
        else
        {
            n*=1000;
            n+=200;
        }
    }
    cout << n << endl;
}

#include "stdio.h" 

long long f[1000010]; 
int l, r; 
long long sol(int m, int n) {
  long long ans = 0, num = 0; 
  for (int i = m; i > 1; -- i) {
    f[i] = 1ll * (n / i) * (m / i); 
    for (int j = i << 1; j <= m; j += i) 
      f[i] -= f[j]; 
    ans += f[i]; 
  }
  return ans; 
}

main() {
  scanf("%d%d", &l, &r); 
  (l == 1) && ++ l; 
  long long num = 0; 
  for (int i = l; i <= r; ++ i) 
  	num += r / i; 
  printf("%lld", sol(r, r) - sol(l - 1, r) * 2 + sol(l - 1, l - 1) - 2 * num + r - l + 1); 
  return 0; 
}