#include <iostream>
#include<stdio.h>
using namespace std;
int main(void){
     int d;
     while(cin>>d){
        int a=0,b=0;
        for(int i=0;i<600;i+=d){
            b=i*i;
            a+=b;
        }
        cout<<a*d<<endl; 
     }
    return 0;
}
