#include<bits/stdc++.h>
using namespace std;
using ll = long long int;
using ld = long double;
#define pow(n,m) powl(n,m)
#define sqrt(n) sqrtl(n)
const ll MAX = 5000000000000000000;
const ll MOD = 1000000007;
//998244353;
void randinit(){srand((unsigned)time(NULL));}
int main(){
    ll t,N;
    cin >> t >> N;
    ll c = 0;
    ll q;
    vector<ll> seen(300,0);
    for(ll i = 1;i <= 100;i++){
        seen[i * (100 + t) / 100] = 1;
    }
    for(ll i = 1;i < 100 + t;i++){
        if(seen[i] == 0){
            q = i;
            c++;
        }
    }
    ll p;
    ll d = 0;
    if(N % c == 0){
        cout << (100 + t) * (N / c - 1) + q << endl;
        return 0;
    }
    for(ll i = 1;i < 100 + t;i++){
        if(seen[i] == 0){
            d++;
            if(d == N % c) p = i;
        }
    }
    cout << p + (100 + t) * (N / c) << endl;
}

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define PI acos(-1)
#define rep(i, n) for (int i = 0; i < (n); i++)

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

    for (int i = 0; i < k; i++)
    {
        if (n % 200 == 0)
            n /= 200;
        else
            n = n * 1000 + 200;
    }

    cout << n << endl;

    return 0;
}