#include<iostream>
using namespace std;
int main(){
	int d, s = 0, a;
	for (int i = 0; i < 20; i++){
		s = 0;
		cin >> d;
		a = 600 / d;
		for (int j = 1; j < a; j++){
			s = s + d*d*d*j*j;
		}
		cout << s << endl;
	}
	return 0;
}