a,b = map(int,input().split()) Answer = (b-a)**3 / 6 print(Answer)