#include <iostream>
#include <list>
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <stack>
#include <cstring>

using namespace std;

int main(){
	int menseki;
	int d;
	while(cin >> d){
	menseki = 0;
	
	for(int i = 1; i * d < 600; i++){
		menseki += (i * d) * (i * d) * d;
	}

	cout << menseki << endl;
	}
	return 0;
}