#include <stdio.h>
#include <iostream>
#include <math.h>
#include <stack>

using namespace std;

int main() 
{
	long int d, sum=0;

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