#include<iostream>
#include<math.h>
#include<vector>
#include<algorithm>
using namespace std;

int main()
{
   int d,i;
   while(cin>>d){
       int ans=0;
       for(i=1;i*d<600;i++){
           ans+=i*d*i*d*d;
       }
       cout<<ans<<endl;
   }
}
