#include<iostream>
using namespace std;

int main()
{
	int x=600, d;

	while(cin>>d){
		int n=x/d;
		cout<<"n="<<n<<endl;
		long sum=0; //d^2+(2d)^2+(3d)^2+...
		for(int i=0;i<n;++i){
			sum+=((i*d)*(i*d));
			cout<<sum<<endl;
		}
		cout<<sum*d<<endl;
	}
	return 0;
}