#include<bits/stdc++.h> using namespace std; struct cww{ cww(){ ios::sync_with_stdio(false);cin.tie(0); cout<<fixed<<setprecision(20); } }init; typedef __float128 D; typedef vector<D> VD; ostream& operator<<(ostream &os,__float128 f){ os<<(double)f; return os; } istream& operator>>(istream &is,__float128 &f){ double x; is>>x;f=x; return is; } const D d2=200; const D d3=300; const int loop=10000; int main(){ int p,q; cin>>p>>q; //q==0だけ場合分け D res=0; VD P(101,0); for(int i=0;i<loop;i++){ VD Q(101); for(int j=0;j<=100;j++) Q[j]=(j/d2)*(1+P[max(j-q,0)])+((100-j)/d3)*(1+P[min(j+q,100)]); swap(P,Q); } cout<<1.0/3+P[p]/3.0<<endl; return 0; }