#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{

  ios_base::sync_with_stdio(0);
  cin.tie(0);
  #ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  #endif

  int tsc=1;
 //cin>>tsc;
  while(tsc--){
    int t,n;
    cin>>t>>n;
    int a=(n*100+t-1)/(t);
    cout<<a+n-1;













cout<<endl;}}


#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
const int maxn=1e6+5;

int main() {
    ll t,n;cin>>t>>n;n--;
    ll need=n%t+1,start=100*(n/t)+1,last=((100+t)*(start-1)/100);
    for(;need;) {
        ll now=((100+t)*start/100);
        if(now!=last+1) need--;
        start++;last=now;
    }
    cout<<last-1<<endl;
    return 0;
}