#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
#include<iomanip>
using namespace std;
#define min(v,w) v>w?w:v;
#define max(v,w) v<w?w:v;
#define INF 0x3f3f3f3f3f3f3f3f
#define MAXN 30

struct p{
	int x,y;
};

int main(){  

	__int64 a,b,c,d,t;
    while(~scanf("%I64d",&d))  { 
		b=0;
		t=d;
		for(;d<600;d+=t){
			b+=t*d*d;			
		}
		if(d<600)
			b+=(600-d)*d*d;
		printf("%I64d\n",b);
	}
	return 0;
}

/*
((F(TF))(TF(F(TF(TF))))(F(TF))(TF))
(TFT)
((TFT)T)

*/