
#include <stdio.h>
#include <math.h>

int f(int x){
	return (x*x);
}

int main(void) {

        int n;
        int a,b,x,dx,sum;

        scanf("%d\n",x);
        a=0;
        b=600;
        sum=0;

        while(x<b){x+=dx;
		sum+=f(x)*x;
        }

        printf("%d\n",sum);

        return 0;
}



