
#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <cmath>
#include <cstdlib>
using ll=long long;

using namespace std;
int main() {
    ll N,K,tmp_ll;
    string tmp_s;
    cin>>N>>K;
    for(ll i = 1;i<=K;i++){
        if(N%200==0){
            N = N / 200;
            // cout<<"=================="<<endl;
            // cout<<N<<endl;
        }else{
            tmp_s = to_string(N) + "200";
            N = stoll(tmp_s);
            // cout<<"--------------"<<endl;
            // cout<<N<<endl;
        }
    }
    cout<<N<<endl;
}

#include <bits/stdc++.h>
#define Int int64_t

using namespace std;

int main() {
	int N, K;
	cin >> N >> K;

	int n = 2*N;
	vector<Int> d(n + 5, 0);
	for (int i = 1; i <= N; ++i) {
		++d[i + 1];
		--d[i + N + 1];
	}
	for (int i = 1; i < d.size(); ++i) { d[i] += d[i - 1]; }

	Int ans = 0;
	for (int i = 2; i <= n; ++i) {
		int idx = i - K;
		if (0 <= idx and idx <= n) { ans += d[i] * d[idx]; }
	}
	cout << ans << "\n";

	return 0;
}