#include<iostream>
#include<math.h>
using namespace std;

int main(){
	int d,y;
	int sum;
	while(cin >> d){
		sum = 0;
		for(int i = d;i <= 600-d ;i +=d){
			y = pow(i,2);
			sum += d*y;
		}
		cout << sum << endl;
	}
}