#include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
using namespace std;

#define rep(i,n) for(int i=0;i<int(n);++i)

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