a,b=map(int, input().split())print(sum([x**3for x in range(a, b+1)]))
1 3
36
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!