#include<bits/stdc++.h>
using namespace std;
#define superfastboy ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define mp make_pair
#define int long long
#define ll long long
#define ull unsigned long long
ll const inf=1e9+7,mod=1e9+7;
ll const N=270805;
signed main(){
//	freopen(".inp","r",stdin);
//    freopen(".outp","w",stdout);
	superfastboy
	int a,b;
  	cin>>a>>b;
  	for(int c=b;c>0;c--){
      	if((a-1)/c+1<b/c){
       		cout<<c<<"\n";
        	return 0;
        }
    }
}
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {

  int t, N;
  cin >> t >> N;

  int P = 100 + t;

  vector<int> A(P,1);
  
  rep(i, 100) {
    A.at(P * i / 100) = 0;
  }

  vector<int> B;

  rep(i, P) {
    if (A.at(i)) {
      B.push_back(i);
    }
  }
  
  int64_t q, r;
  q = (N - 1) / t;
  r = (N - 1) % t;

  int64_t ans;
  ans = P * q + B[r];

  cout << ans << endl;
}
