Import java.util.*;
import java.io.*;
import java.lang.*;
class Program {
public static void main(String[] args) {
Scanner Scan = new Scanner(System.in);
System.out.print("A = ");
int A = Scan.nextInt();
System.out.print("B = ");
int B = Scan.nextInt();
double S = 0;
for(int i = A; i <= B; i++) {<br> S+=i*i;
}
System.out.print("S = "+S);
}
}