#include using namespace std; typedef long long ll; typedef vector> pll; #define mod 1000000007 #define all(x) (x).begin(), (x).end() #define pb push_back #define popcount(x) __builtin_popcountll(x) const long double PI = acos(-1); ll gcd(ll a,ll b){return b ? gcd(b,a%b) : a;} ll lcm(ll a,ll b){return a / gcd(a,b) * b;} ll stringcount(string s, char c){return count(s.cbegin(), s.cend(), c);} bool isInteger(double x){return floor(x) == x;} int main(){ ios::sync_with_stdio(false); cin.tie(0); ll a, b; cin >> a >> b; double ans = 0; for(double x = a; x <= b; x += 0.0001){ ans += abs((x - a) * (x - b))*0.0001; } cout << ans << endl; return 0; }