Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		d, _ := strconv.Atoi(sc.Text())
		var area int
		for i := 1; i*d < 600; i++ {
			area += d * (d * i) * (d * i)
		}
		fmt.Println(area)
	}
}

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

C++: // includes
#include <cstdio>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <utility>
#include <functional>
#include <cmath>
#include <climits>
#include <bitset>

// macros
#define ll long long int
#define pb push_back
#define mk make_pair
#define pq priority_queue
#define FOR(i, a, b) for(int i=(a); i<(b);++i)
#define rep(i, n) FOR(i, 0, n)

using namespace std;

//  types
typedef pair<int, int> P;
typedef pair<ll, int> Pl;
typedef pair<ll, ll> Pll;
 
// constants
const int inf = 1e9;
const ll linf = 1LL << 50;
const double EPS = 1e-10;

// solve
ll calc(ll d){
  ll res = 0.0;
  int x = d;
  while(x < 600){
    res += x * x;
    x += d;
  }
  return res * d;
}

int main(int argc, char const* argv[])
{
  int d;
  while(cin >> d){
    cout << calc(d) << endl;
  }
	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

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

C++: #include <stdio.h>

int f(int x);

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("%ld\n", s);
    }
    return 0;
}

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

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

int main(){
	int d,s;

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

C++: #include<iostream>

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

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

template <typename Func, typename Num>
Num integral(Func f, Num begin, Num end, Num d) {
	Num ret = 0;
	for (Num n = begin; n < end; n += d) {
		ret += f(n) * d;
	}
	return ret;
}

int main() {
	int n;
	std::vector<int> ans;
	
	while (std::cin >> n) {
		const int a = integral([](int x){return x*x;}, 0, 600, n);
		ans.push_back(a);
	}
	
	for (auto a : ans) {
		std::cout << a << std::endl;
	}
}

C++: $<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}

C++: #include<iostream>

using namespace std;

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