#include<stdio.h>
#include<math.h>
int f(int);

int main(void){
    int a=0, b=600, x,d;
    int n,i;
    int s,sum;
    scanf("%d　%d", &d,&d);
    n=(b-a)/d;
    
    sum=0.0;
    x=a;
    for(i=1; i<=n; i++){
        s=d*f(x);
        x+=d;
        sum+=s;
    }
    printf("%d\n", sum);
}
int f(int x){
    return x*x;
}
