Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

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

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

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

C++: #include <iostream>

using namespace std;

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


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

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

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

C++: #include<iostream>

using namespace std;

int main() {
  int x,m,n;
	while(cin >> x){
	  n=0;
	  m = 600/x;
	  for(int i = 1;i<m;i++){
	    n += x*x*x*i*i;
	  }

	  cout << n << endl;
	}
	return 0;
}

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

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

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

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

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