#include <stdio.h>
int main(void){
   
long i,d,b,s,t,y,sum=0;
   while(scanf("%d", &d)!= EOF) {
   b=600/d;
           for(i=1;i<b;i++){
           y=i*d;
           t=y*y;
           s=d*t;
           sum+=s;
       }
       printf("%d",sum);
       if(d == 0) {
   break;
   }
       }
   return 0;
   }
