#include using namespace std; #define rep(i,N) for(int i=0;i using vec = vector; template using vvec = vector>; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } const int INF = (ll)1e9; const ll INFLL = (ll)1e18+1; const ll MOD = (ll)1e9+7; const double PI = acos(-1.0); /* const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; const string dir = "DRUL"; */ int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); long double a,b; cin >> a >> b; if(b == a){ cout << 0 << endl; return 0; } long double ans = 0; long double step = (b-a)/1000000; cerr << step << endl; long double cnt = 0; for(long double x = a; x <= b;x+=step){ cnt++; ans += -(b-a) * (x - a) * (x - b); } ans = ans / cnt; cout << ans << endl; }