#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    long double A, B;
    cin >> A >> B;

    cout << fixed << setprecision(5) << 100.0 * (1.0 - B / A);

    return 0;
}
#include <bits/stdc++.h>
#define rep(i, n)	for(int i=0;i<(int)(n);i++)
#define ALL(a)	(a).begin(),(a).end()
using namespace std;
using ll=long long;
typedef pair<int,int> P;

int main(){
    ll b,c;
    cin>>b>>c;
    ll l1,r1,l2,r2;
    l1=b-c/2;
    r1=b+(c-2)/2;
    l2=-b-(c-1)/2;
    r2=-b+(c-1)/2;

    ll ans=0;
    //cout<<r1<<" "<<l1<<" "<<r2<<" "<<l2<<endl;
    if((r1>=r2&&l1<=r2)||(r2>=r1&&l2<=r1)) ans=max(r1,r2)-min(l1,l2)+1;
    else ans=(r1-l1+1)+(r2-l2+1);
    cout<<ans<<endl;
}