#include	<iostream>
#include	<cstdio>
#include	<cmath>

using namespace std;

int main(void) {
	while(1) {
		int d;
		int sum = 0;
		cin >> d;
		if( cin.eof() )		break;
		int f = 600 - d;
		for(int i = d; i <= f; i += d) {
			sum += (i * i) * d;
		}
		
		cout << sum << endl;
	}
	return 0;
}