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 <iostream>
using namespace std;

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

}

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

int main(void){
  int n;
  while(cin>>n,n){
    long long res = 0;
    for(int i = 0 ; i < 600 ; i += n){
      res += n * i * i;
    }
    cout<<res<<endl;
  }
  return 0;
}

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

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int d;
	while(cin >> d){
	
	int sum = 0;
	for(int i = d; i < 600; i += d){
		sum += d * i * i;
	}
	
	cout << sum << endl;
	}
	
	return 0;
}

C++: #include <iostream>
 
using namespace std;
int main(void){
        int d;
        while(!cin.eof()){
                cin >>d;
                int total=0;
                for(int i=d; i<600; i+=d)
                        total+=d*i*i;
                cout << total << endl;
        }
        return 0;
}

C++: #include<iostream>
#include <vector>
using namespace std;
 
int main()
{
    int d;
 
    while(cin >> d)
    {
        int y=0;
 
        for(int i=1; i*d<600; i++)
        {
            y += d*(d*i)*(d*i);
        }
 
       cout << y << endl;
    }
 
}

C++: #include <iostream>
using namespace std;
int main(void)
{
    int d;
    while (cin >> d)
    {
        int f = 0;
        int n = 1;
        while (n*d <= 600 - d)
        {
            f += n * d * n * d * d;
            n++;
        }
        cout << f << endl;
    }
    return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	int d;
	int divide;
	long int sum;
	int loop = 2;
	/*****処理部*****/
	while(1){
		cin >> divide;
			d = 600 / divide;
		sum = 0;
		for	(int i=1;i<d;i++){
			sum += i * i * divide * divide * divide;
		}
		cout << sum << endl;
		loop--;
		if(loop == 0)	break;
	}
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

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<string>
using namespace std;

int main(){
	int d;
	string str;
	while(1){
		int S = 0;
		getline( cin, str );
		if( str.length()==0 )	break;
		sscanf( str.c_str(), "%d", &d );
		for( int x=d; x<600; x+=d ){
			S += d*x*x;
		}
		cout << S << endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int f(int x) {
  return x * x;
}
int main() {
  int d, i, r;
  while (cin >> d) {
    for (i = r = 0; i < (600 / d); i++) {
      r += f(d * i) * d;
    }
    cout << r << endl;
  }
  return 0;
}

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

using namespace std;

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

C++: #include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define C(_Str) cout << _Str << endl

using namespace std;

typedef long long int lli;

int main()
{
	int Num;
	while (cin >> Num) {
		int S = 0;
		for (int i = 0; i < 600; i += Num) S += i*i*Num;
		C(S);
	}
	return 0;
}

C++: #include <cassert>
#include <iostream>

int f(int x)
{
    return x * x;
}
int main()
{
    while(true){
        int d;
        std::cin >> d;
        if(std::cin.eof()) break;
        
        int s = 0;
        for(int x = d; x < 600; x += d){
            s += d * f(x);
        }
        std::cout << s;
    }
    return 0;
}

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

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

int area(int d) {
    int upper = 600/d; //x軸の上限
    int s = 0;  // 面積初期化

    // 計算
    for (int i = 0; i < upper; i++) {
        s += f((600-d) - i * d) * d;
    }
    return s;
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}

C++: 
#include <iostream>

using namespace std;

int main() {
    int D;
    while(cin >> D) {
        int sum = 0;
        for(int i = D; i < 600; i += D) sum += i*i*D;
        cout << sum << endl;
    }
    return 0;
}

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

int main()
{

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(void){
	int n;
	int sum;
	int i;
	cin>>n;
	sum=0;
	for(i=n;i<=600;i+=n){
		sum+=n*pow((i-n),2);
	}
	cout<<sum<<endl;
	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{
	int d;
	while(scanf("%d", &d) != EOF)
	{
		int sum = 0;
		for (int id = d; id < 600; id += d)
		{
			sum += id * id * d;
		}
		printf("%d\n", sum);
	}
	return 0;
}

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

int main()
{
	int N;
	while (cin >> N) {
		cin >> N;
		N = N*N*N / 3;
		cout << N;
	}
	return 0;
}

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

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

C++: #include<iostream>

using namespace std;

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

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,i,s;
    while(cin>>a){
        for(s=0,i=1; a*i<600; i++)
        s+=i*i*a*a*a;
        cout<<s<<endl;
    }
}

C++: #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <vector>
#include <map>
#include <utility>
#include <complex>
#include <stack>

using namespace std;

typedef complex<double> P;

int main(){
	int x;
	while(cin>>x){
		int ans = 0;
		for (int i = 0; i < 600; i += x)
		{
			ans += i * i * x;
		}

		cout << ans << endl;
	}

	return 0;
}

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

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

int main(void) {

        int n;
        int a,b,x,dx,sum;

        scanf("%d\n",x);
        a=0;
        b=600;
        sum=0;

        while(x<b){x+=dx;
		sum+=f(x)*x;
        }

        printf("%d\n",sum);

        return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    int d,sum;
    sum = 0;
    while (cin >> d) {
        for (int i=1;i<=((600-d)/d);i++) {
            sum = sum + (i*d*i*d*d);
        }
        cout << sum << endl;
        sum = 0;
    }
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,i,j,k;
	int s=0;
	while(cin>>a){
		for(i=a;i<600;i+=a){
			s+=i*i*a;
		}
		cout<<s<<endl;
		s=0;
	}
	return 0;
}