Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	n, err := strconv.Atoi(nextString())
	return n, err
}

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

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		d, err := nextInt()
		if err != nil {
			break
		}

		area := 0
		for i := 0; i < 600/d; i++ {
			x := i * d
			area += f(x) * d
		}
		fmt.Println(area)
	}
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int n,ans;
	while(cin>>n){
		ans=0;
		int a=600/n;
		fu(0,a){
			ans+=i*n*n*i*n;
		}
		cout<<ans<<endl;
	}
}

C++: #include <iostream>

using namespace std;

int main(){
    for(int d, size = 0; cin >> d; cout << size << endl, size = 0)
		for(int k = 0; k < 600; k += d)
			size += d * k * k;

	return 0;
}

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

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

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

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

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

using namespace std;

int main()
{
	int n;
	while(cin>>n)
	{
		int area=0,ans=0,i=1;
		while(1)
		{
			if(i*n==600-n)
				break;
			if(i*n>600-n)
				break;
			area=(i*n)*(i*n)*n;
			ans += area;
			area=0;
			i++;
		}
		ans += (600-n)*(600-n)*n;
		cout<<ans<<endl;
	}
	return 0;
}

C++: #include<iostream>

using namespace std;
int main() {
    int d;
    while(cin >> d) {
        long long ans = 0;
        int y = d;
        while (y <= 600 - d) {
            ans += (long long)y * y * d;
            y += d;
        }
        cout << ans << endl;
    }
}

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

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

C++: #include<stdio.h>

int main(void){

	int d,inte;

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


	return 0;
}

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

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

C++: #include<cstdio>
int main(){
    int d;
    while(~scanf("%d",&d)){
        int ans=0;
        for(int i=d;i<=600-d;i+=d){
            ans+=i*i*d;
        }
        printf("%d\n",ans);
    }
}

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

int keta(int x){
	int i=0;
	while (x/pow(10,i)>=1){
		i++;
	}
	if (x==0){
		return 1;
	}
	else
	return i;
	}


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

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

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

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


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

int main(void)
{
  int a=0, i, d;

  scanf("%d", &d);

  for(i=1; i < 600/d; i++)
  {
    a = d * f(d*i) + a;
  }

  printf("%d", a);

  return 0;
}

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

double func(double d,double x){
	return d*x*x;
}

int main()
{
	while(1){
		double s=0,d;
		cin>>d;
		for(double i=d;i<600;i+=d){
			s+=func(d,i);
		}
		cout<<s;
	}
}

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

using namespace std;

double rect_area(double a,double b){
  return a*b*b;
}


int main(){
  int d;vector<int> ans;
  while(cin >> d){
    int l=int(600/d);
    double c=0;
    for(int i=0;i<l;i++){
      c+=rect_area(d,i*d);
    }
    ans.push_back(int(c));
  }
  for(auto& e: ans){
    cout << e << endl;
  }

}

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

using _i64 = int64_t;
using _u64 = uint64_t;
using _f64 = double;

#define endl "\n"

#define _for(i, start, end) for(_i64 i = (_i64)start; i < (_i64)end; ++i)
#define _rep(i, number) _for(i, 0, number)
#define _foreach(e, data) for(auto& e : data)
#define _all(data) data.begin(), data.end()

template<typename type>
_i64 _size(const type& data) { return static_cast<_i64>(data.size()); }
template<typename type, size_t size>
_i64 _size(const type (&)[size]) { return static_cast<_i64>(size); }

enum _flag : bool { able = true, disable = false };

struct _time {
    _time(_flag flag) { check = flag; if(!check) { return; } gettime(start); }
    ~_time() {
        if(!check) { return; }; gettime(end);
        _i64 elapse = chrono::duration_cast<chrono::milliseconds>(end - start).count();
        cout << endl << "Time: " << elapse << " ms" << endl;
    }
    private:
    using _timer = chrono::time_point<chrono::system_clock>;
    _timer start, end; bool check;
    void gettime(_timer& time) { time = chrono::system_clock::now(); }
};

struct _ini { _ini() { ios::sync_with_stdio(false); cin.tie(nullptr); } } _ini;

int main() {
    {
        _time time(disable);
        _i64 d, ans;
        while(cin >> d) {
            ans = 0;
            _for(i, 1, 600 / d) { ans += pow(d * i, 2) * d; }
            cout << ans << endl;
        }
    }
    return 0;
}

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

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


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

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

using namespace std;

int main(int argc, char const* argv[])
{
	int sum[5000];
	int n;

	while( cin >> n && n != 0 ){
		int input;
		for( int i = 0;i < 5000;i++ ) sum[i] = 0;
		cin >> input;
		sum[1] = input;
		for( int i = 2;i <= n;i++ ){
			cin >> input;
			sum[i] = input + sum[i - 1];
		}

		int answer = -10000000;

		for( int i = 0;i <= n;i++ ){
			for( int j = 0;j < i;j++ ){
				answer = max( answer, sum[i] - sum[j] );
			}
		}

		cout << answer << endl;
	}

			

	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
#define NUM 600

int main(){
	long n;
	while(cin >> n){
		long a = NUM/n;
		long b = 0;
		for(long i=1;i<a;i++) b += n*n*n*i*i;
		cout << b << endl;
	}
}

C++: using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}

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

C++: #include <iostream>
using namespace std;
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    long long d;
    while (cin >> d) {
        long long sum = 0;
        for (int i=d; i<=600-d; i+=d) {
            sum += i * i * d;
        }
        cout << sum << "\n";
    }
    return 0;
}

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

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