Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	area := 0
	for sc.Scan() {
		n, _ := strconv.Atoi(sc.Text())
		area = 0

		for i := 1; i < 600/n; i++ {
			area += n * (n * i) * (n * i)
		}

		fmt.Println(area)

	}
}

C++: #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstring>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <functional>
#include <sstream>
using namespace std;

#define REP(i,a,n) for(int i=(a);i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define pb push_back
#define mp make_pair
#define all(x) x.begin(),x.end()

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

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

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

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

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

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

int main()
{
	int x=600, d;

	while(cin>>d){
		int n=x/d;
		//cout<<"n="<<n<<endl;
		long sum=0; //d^2+(2d)^2+(3d)^2+...
		for(int i=0;i<n;++i){
			sum+=((i*d)*(i*d));
			//cout<<sum<<endl;
		}
		cout<<sum*d<<endl;
	}
	return 0;
}

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

using namespace std;

int main(void) {
	while(1) {
		int d;
		int sum = 0;
		cin >> d;
		if( cin.eof() )		break;
		int f = 600 - d;
		for(int i = d; i <= f; i += d) {
			sum += (i * i) * d;
		}
		
		cout << sum << endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int d;

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

C++: #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;

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

	return 0;
}

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

int get_square(int x){
  return x*x;
}
int main(){
  vector<int> area_anss;
  int d;
  while(cin>>d){
  int area=0;
  for(int i=1;i<600/d;i++){
    area=area+get_square(i*d)*d;
    }
  area_anss.push_back(area);
  }
  for(int i=0;i<area_anss.size();i++){
    cout<<area_anss[i]<<endl;
  }
}

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

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

int main(void)
{
	int n;

	while(cin >> n){
		int s = 0;

		for(int i = 1; i * n < 600; i++)
			s += f(i * n) * n;

		cout << s << endl;
	}

	return 0;
}

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