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>
#include<vector>
#include<algorithm>
#include<map>
using namespace std;

int main(void) {

    int d;
    while(cin >> d){
        int n = 600 / d;
        int ans = 0;
        for(int i=0; i<n; i++) ans += (i*d)*(i*d) * d;

        cout << ans << endl;
    }



    return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	double d;

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

}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Programminng
{
    class AOJ_Volume0014
    {
        public static void Main(string[] args)
        {

            while (true)
            {
                string input = Console.ReadLine(); ;
                if (string.IsNullOrEmpty(input)) break;

                int d = int.Parse(input);
                int value = 0, s = 0;

                while (value != 600 - d)
                {
                    value += d;
                    int line = value * value;
                    s += line * d;
                }
                Console.WriteLine(s);

            }
        }
    }
}

C++: #include<iostream>
#include<vector>
using namespace std;
int main(){
  int d,s;
  int S = 0;
  int n = 20;
  int y,x;
  while(n > 0){
    cin >> d;
    // int y = x * d;
    for(y < 600-d;y++;){
      int x[1000]; 
      int y = x * d;
    int s = y * d;
    int n = n - 1;
    int S = S + s;
  }
    cout << S << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
 
using namespace std;
 
int main(){
     int n;
     int S;
     while(cin >> n){
        S = 0;
        for(int i = 0; i < 600; i += n){
            S += n * i * i;
        }
        cout << S << endl;
     }
    return 0;
}

C++: #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <queue>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <complex>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <fstream>
#include <stdio.h>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<double> VEC;
typedef vector<VEC> MAT;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<int, PII> TIII;
typedef long long LL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
//container util

//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define MT(a,b,c) MP(a, MP(b, c))
#define T1 first
#define T2 second.first
#define T3 second.second.first
#define T4 second.second.second

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define EPS 1.0e-9

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

C++: #include <iostream>

using namespace std;

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

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

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

		cout << s << endl;
	}

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

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

C++: #include <iostream>

int main()
{
  int d;
  while( std::cin >> d ) {
    std::cout << [&]{ int r=0; for( int x=d; x<=600-d; x+=d ){ r += x * x * d; } return r; }() << std::endl;
  }
}

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

using namespace std;

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

	while (scanf("%d", &ret) != EOF){

		for (int i = 1; i*ret <= 600-ret ;i++){
			sum += pow(i*ret,2) * ret;
			cout << i << ":" << sum << endl;
		}

		cout << sum << endl;

		sum = 0;
	}

	return 0;
}

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

//const static double	de_PI	= 3.14159265358979323846;
//const static int	de_MOD	= 1000000007;
//const static int	de_MAX	= 999999999;
//const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	double n = 0;
	std::vector<double> ans;

	while (std::cin >> n) {
		double sum = 0;
		double div = 600 / n;
		for (int i = 1; i < div; i++) {
			sum += n*(n*i)*(n*i);
		}
		ans.push_back(sum);
	}

	std::for_each(ans.begin(), ans.end(), [](int i) {std::cout << i << std::endl; });
}

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

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

C++: #include <iostream>
using namespace std;
int main( void )
{
	while ( 1 )
	{
		int d;
		cin >> d;
		if ( cin.eof() )
			break;

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

		cout << sum << endl;

	}
	return 0;
}

C++: #include<iostream>

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

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

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

C++: #include <stdio.h>

int area(int d) {
    
    int i=0,n,x,y,s,sum=0;
    
     n = 600/d ;
　　for (i=0; i < n; i++){
　　    x = i*d;
　　    y = x*x;
　　    s= y*d;
　　    
　　    sum=sum+s;
　　}
　　return sum;
　
　　       
}

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

C++: 

#include<stdio.h>
 int main(){ int a,b,i;
 while(~scanf("%d",&a)){ b=i=0; for(;i<600/a;){ b+=a*i*a*i++*a;
 }
 printf("%d\n",b); 
}
 }

C++: #include<iostream>

using namespace std;

int main(void){
  int d;

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

  return 0;
}

C++: #include <iostream>

using namespace std;
#define f(x) x*x

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