Go: package main

import "fmt"

func main() {
	var d int
	for {
		v, _ := fmt.Scan(&d)
		if v == 0 {
			break
		}
		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;

#define FOR(i,l,r) for(int i = (l);i < (r);i++)
#define ALL(x) (x).begin(),(x).end()
template<typename T> bool chmax(T& a,const T& b){return a < b ? (a = b,true) : false;}
template<typename T> bool chmin(T& a,const T& b){return b < a ? (a = b,true) : false;}
typedef long long ll;

const int N = 600;

int main()
{
	ll D;
	while(~scanf("%lld",&D)){
		ll ans = 0;
		for(int i = 0;i < N;i += D){
			ans += i * i * D;
		}
		printf("%lld\n",ans);
	}

	return 0;
}

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

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

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

using namespace std;

long long solve(int a, int b){

    long long ret = 1;
    while(b--) ret *= a;
    return ret;

}

int main(){

    int d;

    while(cin >> d){

        long long ans = 0;

        for(int i = 1; i < 600 / d; ++i){
            ans += solve(d * i, 2) * d;
        }

        cout << ans << endl;

    }

}

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

int main()
{
    int d;
    while (std::cin >> d) {
        double s = 0.0;
        for (int i = 1; i < 600 / d; ++i) {
            s += d * d * d * i * i;
        }
        std::cout << (int)s << std::endl;
    }
}

C++: #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

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

C++: #include "stdio.h"
#include "math.h"

int main()
{
	int d, x;

	while(scanf("%d", &d) != EOF){
		x = 0;

		for(int i = 0; i < 600; i += d)	x += (d * pow(i, 2.0));

		printf("%d\n", x);
	}

	return 0;
}

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

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

int main()
{
int d;
while(cin>>d)
{
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 area(int d){
    int x, y, sum, i;
    x = 600;
    y = d * d;
    sum = 0;
    i = 1;
    while(d * i <= 600 - d){
        sum += y * d;
        i++;
        y = (d * i) * (d * i);
    }
    return sum;
}

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

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

typedef long long int LLI;

LLI d;

int main() {
  while (1) {
    if (scanf("%lld", &d) != 1) break;
    
    LLI ans = 0;
    for (LLI i=0; i<600; i+=d) {
      ans += i*i*d;
    }
    printf("%lld\n", ans);
  }
}

C++: #include<iostream>

using namespace std;

int main(void) {
	int d;
	long long res;
	int i;

	while(!cin.eof()) {
		cin >> d;
		res = 0;
		for(i = d; i < 600; i+=d) {
			res += i*i*d;
		}
		cout << res << endl;
	}

	return 0;
}

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

int main(){
  int a,s;
  while(cin>>a){//EOF?????§
    s=0;
    for(int i=a;i<600;i+=a){
      s+=i*i*a;
    }
    cout<<s<<endl;
  }
  return 0;
}

C++: 
#include <stdio.h>

#define MAX 600

int function(int d)
{
	d = d * d;
	return d;
}

int main()
{
	int d,cnt;
	int sum;
	while ((scanf("%d", &d)) != EOF)
	{
		sum = 0;
		cnt = MAX / d;
		for (int i = 1; i < cnt; i++)
		{
			sum += function(d*i)*d;
		}
		printf("%d\n",sum);
	}
	return 0;
}

C++: #include <iostream>

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

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

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

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

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

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

C++: #include <iostream>

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

C++: $<.map{|i|s=0;(600/a=i.to_i).times{|i|s+=a**3*i*i};p s}

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

using namespace std;

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

C++: #include <iostream>

int main(){

	int d;

	while(std::cin >> d){
		
		int squ;
		int sum_heights = 0;

		for(int i = 0; i < 600; i = i + d){
			sum_heights = sum_heights + (i * i);
		}

		squ = d * sum_heights;

		std::cout << squ << std::endl;
	}

	return 0;
}

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

using namespace std;

double d;

double SquareTheX(double x)
{
    return x*x;
}


int main()
{
    cout << "Lenght of d : ";
    cin >> d;
    double SquareAmount = 600/d;
    double TotalArea = 0;
    double Height;

    for(double y = d; y < 600; y = y + d)
    {
        Height = SquareTheX(y);
        TotalArea = TotalArea + (d*Height);
    }

    cout << TotalArea;
    return 0;
}

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

using namespace std;

int main(){

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

    return 0;
}

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

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

	return 0;
}

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

int main(){
	while(true){
	
	int d;
	cin >> d;
	if(cin.eof())
		break;
	int area = 0;
	for (int i = 0; i <600;i+=d){
		area += d * i * i;
	}
	cout << area << endl;
	area = 0;
	}
	return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen("testcase.int", "r", stdin);
	string str = "";
	int x = 600;
	
	while ( getline (cin, str )){
		int d;
		stringstream ss(str);
		ss >> d;
		int i;
		int sum = 0;
		for (i = d; i < x; i += d){
			sum += i*i*d;
		} // end for
		cout << sum << endl;
	} // end for

	return 0;
}

C++: #include<iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int a,ans;
int main(){
	while(cin>>a){
		for(int i=0;i<600/a;i++){
		ans+=i*i*a*a*a;}
	cout<<ans<<endl;
	ans=0;}
	return 0;}

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

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

	return 0;
}