#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

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