#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	int d;
	unsigned int ans;

	while(cin>>d){
		ans=0;
		for(int i=d;i<600;i+=d) ans+=i*i*d;

		cout<<ans<<endl;
	}


	return 0;
}