Go: package main

import "fmt"

func main() {
	var d int
	for {
		fmt.Scan(&d)
		sum := 0
		for i := 0; i < 600/d; i++ {
			sum += d*d*i*d*i
		}
		fmt.Println(sum)
	}
}

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
    // y = x^2
    int d, i, s;
    s = 0;
    for(cin >> d){
        for (i = 0; i < (600/d); ++i){
            s = s + (i * d) * (i * d) * d;
        }
        cout << s << endl;
    }
}

C++: #include <iostream>
#include <cstdio>
#include <complex>
#include <cmath>
#include <utility>
#include <algorithm>
using namespace std;

int main()
{
    int d;
    int S;
    while(cin >> d && d)
    {
        S=0.0;
        int a = 600/d;
        for(int i=1;i<a;i++)
        {
            S += d*i*d*i*d;
        }
        cout << S << endl;
    }
    return 0;
}

C++: //ツ姪「ツ妥ィツ閉カツづ可個セツづュツづェツつスツ津環づィツづ可偲?堕閉つキツづゥツつセツつッ
#include <iostream>
using namespace std;

int f(int x){
  return x * x;
}

int main(){
  int d;

  while(cin >> d){
    int sum = 0;

    for(int i = d; i <= 600 - d; i += d){
      int h = f(i);
      sum += h * d;
    }

    cout << sum << endl;
  }
}

C++: #include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
using namespace std;
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str();}
typedef vector<int> vi;
typedef vector<vi>  vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n) FOR(i,0,(n)-1)
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int INF = INT_MAX/10;

int f(int x) {
	return x*x;
}

int main() {
	int d;
	while(cin >> d) {
		int ans = 0;
		for(int x = d; x < 600; x += d) {
			ans += d*f(x);
		}
		cout << ans << endl;
	}

	return 0;
}

C++: #include <iostream>
#include <vector>
#include <numeric>
using namespace std;

int main(){
	int d;
	while(cin >> d){
		vector<int> sec;
		for(int i = d; i < 600; i += d){
			int y, z;
			y = i * i;
			z = y * d;
			sec.push_back(z);
		}
		int sum = accumulate(sec.begin(), sec.end(), 0);
		cout << sum << endl;
	}
	return 0;
}

C++: #include <stdio.h>
int main(void){
   
int d,i,s,x,y;

   while(scanf("%d", &d)!= EOF) {
       int sum=0;
       
       for(i=1;i<600/d;i++){
           
           x=i*d;
           y=x*x;
           s=d*y;
           sum+=s;
           
       }
       printf("%d\n",sum);
       if(d == 0) {
           break;
           
       }
       
   }
   return 0;
    
}

C++: // Integral

#include <iostream>
using namespace std;

int main() {
	int d;
	while(cin >> d) {
		int x = 0;
		long long S = 0;
		for(int i = 1; i < 600/d; i++) {
			x += d;
			S += d * (x * x);
		}
		cout << S << endl;
	}
	return 0;
}

C++: #include<cstdio>
#include<iostream>
int main(void){
    int d,sum;
    while(scanf("%d",&d)!=EOF){
    sum=0;
    for(int i=d;i<600;i+=d){
        sum+=i*i*d;
    }
    printf("%d\n",sum);
    }
    return 0;
}

C++: #include<iostream>
#include<math.h>

int main()
{
	int d;
	int ans = 0;
	while( std::cin >> d ){
	 	for( int i = 1; i < 600 / d; i++ ){
			ans += (int)pow( i * d, 2 ) * d;
		}
		std::cout << ans << std::endl;
		ans = 0;
	}

 	return 0;
}

C++: #include<stdio.h>
#include<iostream>
#include<math.h>
#include<algorithm>
#include<string>
using namespace std;

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

	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;

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

C++: 
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
using namespace std;

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

C++: #include<stdio.h>
int main()
{
	int m=0,d;
	while(!(scanf("%d",&d)==EOF)){
		m=0;
		for(int i=0;i<(600-d);i++){
			m+=((i+1)*(i+1));
		}
		printf("%d\n",m);
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main() {
	int d;
	while (scanf("%d", &d) != EOF) {
		long sum = 0;
		for (int i=d; i<600; i+=d) {
			sum += d*pow(i, 2);
		}
		cout << sum << endl;
	}
}

C++: #include <iostream>
using namespace std;

int main() {
	int d;
while(cin>>d){
	int a=600/d;
	int sum  = 0;
	for (int k=1;k<=a;k++){
		sum=sum+d*(((k-1)*d)*((k-1)*d));
	
}
cout<<sum<<endl;
}
	return 0;
}

C++: #include <cstdio>
#define f(x)((x)*(x))
int main() {
	int d;
	while(scanf("%d",&d)!=EOF) {
		int sum=0;
		for(int i=1;i*d<=600-d;i++) {
			sum+=f(i*d)*d;
		}
		printf("%d\n",sum);
	}
}

C++: #include <iostream>
#include <cstdio>
using namespace std;

double fx (double d, double x) 
{
	if (x == 0) return 0;
	else return d * x * x + fx(d, x - d);
}

int main(void)
{
	double d, x;
	while (cin >> d) {
		x = 600;
		printf("%.0f\n", fx(d, x - d));
	}
	
	return 0;
}

C++: //#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
//#include "bits/stdc++.h"

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()

#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
#define MAX_N (100001)
typedef long long ll;

using namespace std;




signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	while (1) {
		int x = 0;
		int d; cin >> d;
		int ans = 0;
                if(cin.eof()) break;
		while (x < 600) {
			ans += x * x;
			x += d;
		}
		ans *= d;
		cout << ans << endl;
	}
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define rp(a) while(a--)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(){
	int n;
	while(cin>>n){
		int sum=0;
		rep(i,600/n)sum+=n*n*n*i*i;
		cout<<sum<<endl;
	}
}

C++: #include<iostream>



using namespace std;

int f(int x){
    return x*x;
}

int main(){

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

C++: #include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;

int main(void){
	int d,sum;
	while( cin >> d ){
		sum = 0;
		for(int i=0;i < 600;i+=d){
			sum += i*i;
		}
		cout << sum*d << "\n";
	}
	return 0;
}

C++: while (a=c=gets.to_i)>0
b=0
(600/a-1).times{b+=c*c*a;c+=a}
puts b
end

C++: #include <iostream>

using namespace std;

int main(){
	double d;

	while(cin >> d){
	double sum = 0;
	for(int i=1; i*d<600; i++){
	sum = sum + d * (i*d)*(i*d);
	}
	cout << sum << endl;
	}

}