//0014 Integral

//vñFy=x^2Ay=0Ax=600ÉÍÜê½ÊÏðAÏªÁÛ­ßé
//ßIÈÊÏðoÍµÈ³¢
//üÍÍ¡sÅ^¦çêA1sÉÍ600Ìñd¾¯ªÜÜêé@üÍÌI¹ÍEOFÅ\³êé
//»ê¼êÌüÍdÉÎµAßIÈÊÏð1s²ÆÉoÍ¹æ

//¿ÈÝÉdð¬³­·êÎ·éÙÇA72000000ÉßÃ­

#include<iostream>
using namespace std;

int main(void)
{
	int d;
	const int LIMIT_X = 600;
	while(cin >> d)
	{
		int sum = 0;
		for(int i = d; i < LIMIT_X; i+=d)
		{
			sum += (i*i)*d;
		}
		cout << sum << endl;
	}
	return 0;
}