from sys import stdin def main(): #入力 readline=stdin.readline a,b=map(int,readline().split()) print(abs(b-a)**3/6) if __name__=="__main__": main()