#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <string>
#include <stack>

using namespace std;

int main (int argc, char * const argv[]) {
    // insert code here...
    int d;
		
	while(cin>>d){
		int S=0;
		
		for(int x=0;x+d<=600;x+=d){
			S+=d*(x*x);
		}
		cout<<S<<endl;
	}
	
	return 0;
}