#include <cstdio>
using namespace std;

int main(){
	int n, ans;
	while(scanf("%d", &n) != EOF){
		ans = 0;
		for(int i = n; i < 600; i += n){
			ans += n * i * i;
		}
		printf("%d\n", ans);
	}
	return 0;
}