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>

int main(){
	int f_x,sum_area;
	int d = 0;
	while(std::cin >> d){
		sum_area = 0;
		for(int i = d; i <= 600 - d; i += d){
			f_x = i * i;
			sum_area += f_x * d;
		}
		std::cout << sum_area << std::endl;
	}
}

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

int main(){
  int d;

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

  return 0;
}

C++: #include <stdio.h>

int main(void){
    int d;
    long s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*(i*d)*(i*d);
        }
	    printf("%d\n", s);
    }
    return 0;
}

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

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

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

int i,c;

int area(int d) {
    int sum=0;
   for (i=d; i<=600-d ;i+=d){
        c=d*i*i;
        sum=sum+c;
    }
    return sum;
}

int main(void){
    int d;
    while(cin >> d){
    cout << area(d) <<endl;
    }
    return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(){
	int d;
	int sum = 0;

	cin >> d;

	for(int i=0; i<600/d; i++){
	sum = sum + d * (i*d)*(i*d);
	}
	cout << sum << endl;

}

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

int main() {
    int d;
    while (~scanf("%d", &d)) {
        unsigned long long int r = 0;
        for (int i = 0; i < 600 / d; ++i) {
            r += std::pow(d * i, 2) * d;
        }
        printf("%llu\n", r);
    }
}

C++: #include <stdio.h>

#define X 600

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

C++: #include <stdio.h>

int main(void){
    int d;
    int s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*(i*d)*(i*d);
        }
	printf("%ld\n", s);
    }
    return 0;
}

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

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

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

int main()
{
	int d[2];
	while(scanf("%d",&d[0])!=EOF) {
		int ans=0;
		d[1] = d[0];
		while(true) {
			ans += pow(d[0],2)*d[1];
			d[0] += d[1];
			if(d[0] >= 600) break; 
		}
		printf("%d\n",ans);
	}	
	return 0;
}

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

#define iota(i,n,b,s) for(int i=int(b);i!=int((b)+(s)*(n));i+=(s))
#define range(i,n,m) iota(i,(((n)>(m))?((n)-(m)+1):((m)-(n)+1)),(n),((n)>(m)?-1:1))
#define rep(i,n) iota(i,(n),0,1)

#define INF (1e9)
#define EPS (1e-9)
#define cons(a,b) (make_pair(a,b))
#define car(a) (a.first)
#define cdr(a) (a.second)
#define cadr(a) (car(cdr(a)))
#define cddr(a) (cdr(cdr(a)))
#define all(a) a.begin(), a.end()
#define trace(var) cerr<<">>> "<<#var<<" = "<<var<<endl;

typedef long long Integer;
typedef double Real;

template<class S, class T>
ostream& operator<<(ostream& os, pair<S,T> p) {
  os << '(' << car(p) << ", " << cdr(p) << ')';
  return os;
}

template<class T>
ostream& operator<<(ostream& os, vector<T> v) {
  os << v[0];
  for (int i=1, len=v.size(); i<len; ++i) os << ' ' << v[i];
  return os;
}

int dx[] = { -1, 0, 1, 0 };
int dy[] = {  0, -1, 0, 1 };

int main() {

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

  return 0;
}

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

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

int i,c;

int area(int d) {
    int sum = 0;
    for(i=d; i<=600-d;i += d){
        c = d * f(i);
        sum = sum + c;
        
    }
    return sum;
}

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

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

int main(){
  string s;
  cin >> s;
  int k;
  for(k=s.size();k>=0;k--){
    printf("%c",s[k]);
  }printf("\n");
  return 0;
}

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

int area(int d) {
        int sum=0;
        for(int i=0;i<600;i+=d){
                sum += d*i*i;
        }
        return sum;
}

int main(void){
        int d;
        while(cin >> d) {
        cout << area(d) << endl;
        }
        return 0;
}

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

int main(){
    int d;
    int result;

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

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

using namespace std;

int main(void){
	int s = 0, d;
	cin >> d;
	
	for(int i = d; i < 600; i += d) s += pow(i, 2);

	cout << s << endl;

	return 0;
}

C++: #include <iostream>

using namespace std;

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

int main(int argc, char const* argv[])
{
	int d;

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

		for( int i = 1;i < n;i++ ){
			sum += f( i * d ) * d;
		}

		cout << sum << endl;
	}
	
	return 0;
}

C++: #include <cstdio>

int main(){
  int d;
  while(~scanf("%d",&d)){
    int area=0;
    for(int x=0; x<600; x+=d)
      area+=x*x*d;
    printf("%d\n",area);
  }
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	while(cin>>n){
		int S = 0;
		
		for(int i = 0;600 - i*n != 0;i++){
			S += (i*n)*(i*n) * n;
		}
		
		cout << S << endl;
	}
}

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;
    }
 
}

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

int main(void) {
    unsigned d, x = 0, s = 0;
    while(cin >> d) {
        while(x < 600) {
            s += x * x * d;
            x += d;
        }
        cout << s << endl;
    }
}

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;
	/*****処理部*****/
	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;
	}
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

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

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

}

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

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

C++: #include <iostream>

using namespace std;

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