#include<iostream>
#include<string>
#include<stdio.h>
#include<cctype>
#include<algorithm>
#include<climits>
#include<cmath>
#include<map>
#include<vector>
#define INF INT_MAX
using namespace std;

int d, s;

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


	return 0;
}
