Go: package main

import "fmt"

func main() {
	var d int
	for {
		v, _ := fmt.Scan(&d)
		if v == 0 {
			break
		}
		sum := 0
		for i := 0; i < 600/d; i++ {
			sum += d*d*i*d*i
		}
		fmt.Println(sum)
	}
}

C++: #include <iostream>

using namespace std;

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

int main()
{
    int d;
    
    while (cin>>n)
    {
        int ans = 0;
        
        for (int i = 1; d * i < 600; i++)
        {
            ans += f(d * i) * d; // equation is informed from question
        }
        
        cout<<ans<<endl;
    }
    
    return 0;
}

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

int main(){
    int d;
    while(cin){
        cin >> d;
        if(!cin) break;
        int itg=0;
        for(int i=1;i*d<600;i++) itg+=pow(i*d,2)*d;
        cout << itg << endl;
    }
}

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

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ll, ll> P;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for (ll i=(a);i<(b);i++)
#define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--)
#define REP(i,n) for (ll i=0;i<(n);i++)
#define RREP(i,n) for (ll i=(n)-1;i>=0;i--)
#define debug(x) cout<<#x<<": "<<x<<endl
#define pb push_back
#define ALL(a) (a).begin(),(a).end()

const ll linf = 1e18;
const int inf = 1e9;
const double eps = 1e-12;
const double pi = acos(-1);

template<typename T>
istream& operator>>(istream& is, vector<T>& vec) {
	EACH(x,vec) is >> x;
	return is;
}
template<typename T>
ostream& operator<<(ostream& os, vector<T>& vec) {
	REP(i,vec.size()) {
		if (i) os << " ";
		os << vec[i];
	}
	return os;
}
template<typename T>
ostream& operator<<(ostream& os, vector< vector<T> >& vec) {
	REP(i,vec.size()) {
		if (i) os << endl;
		os << vec[i];
	}
	return os;
}

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

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(0);
	int d;
	while (cin >> d) {
		ll n = 600/d;
		ll ans = 0;
		REP(i, n) {
			ll x1 = i * d, x2 = (i+1) * d;
			ans += d * f(x1);
		}
		cout << ans << endl;
	}
}

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

using namespace std;

int main() {
	int d;
	int seki;
	int yaku;
	int sum = 0;

	while (cin >> d) {
		yaku = 600 / d - 1;

		for (int i = 0; i < yaku; i++) {
			seki = d * d * d * (i + 1) * (i + 1);
			sum += seki;
		}

		cout << sum << endl;
		sum = 0;
	}

	return 0;
}

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

using namespace std;

int main(void){
	int s = 0, d;
	cin >> d;
	
	for(int i = d; i < 600; i += d) s += pow(i, 2);

	cout << s;

	return 0;
}

C++: // Integral

#include <iostream>
using namespace std;

int main() {
    int d; // 幅

    while (cin >> d) {
        int area = 0; // 累積の面積
        for (int x = d; x < 600; x += d) {
            area += x * x * d;
        }
        cout << area << "\n";
    }
    return 0;
}

C++: #include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
    int d;
 
    while (~scanf("%d", &n)) {
        int ans = 0;
        for (int a = d; a <= 600 - d; a += d) ans += a * a * d;
        printf("%d\n", ans);
    }
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int f(int n){
  return n*n;
}

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

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

using namespace std;

int f(int x){
	return pow(x,2);
}

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

	}
}

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

using namespace std;

int main(){
  const int x = 600;
  int d,area=0,height=0,width;
  vector<int> data;
  while(cin >> width){
    data.push_back(width);
  }

  for(int j=0; j<data.size(); j++){
    width = data[j];
    area=0;
    d = x/width;

    for(int i=0; i<d; i++){
      height = (width*i)*(width*i);
      area+=height*width;
    }
    cout << area << endl;
  }
  return 0;
}

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

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

int integral(int d, int d0){
    if(d >= 600){
        return 0;
    }
    
    return(f(d)*d0 + integral(d+d0, d0));
}

int main(){
    int d;
    while(cin >> d){
        cout << integral(d, d) << endl;
    }
    return 0;
}

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

#define loop(i,a,b) for(int i = a ; i< b ; i ++)

int main(void){
  int d;
  while(cin>>d){
    long long int sum =0;
    loop(i,1,600/d)
      sum+=i*i*d*d*d;
    cout<<sum<<endl;
  }
  return 0;
}

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

using namespace std;

int main() {
  int d;
  for (int sum = 0; cin >> d;) {
    for (int i = 1; i * d < 600 - d; i++) {
      sum += d * (d * i) * (d * i);
    }
    cout << sum << endl;
  }
  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>
#include <cmath>

using namespace std;

int d;

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


int main()
{
    cout << "Lenght of d : ";
    cin >> d;
    int SquareAmount = 600/d;
    int TotalArea = 0;
    int Height;

    for(int y = d; y < 600; y = y + d)
    {
        Height = SquareTheX(y);
        TotalArea = TotalArea + (d*Height);
    }

    cout << TotalArea;
    return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<memory>
#include<array>
#include<vector>
#include<queue>
#include<list>
#include<stack>
#include<algorithm>
#include<cmath>

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

C++: 
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <stack>
#include <cctype>
#include <complex>
#include <vector>
#include <algorithm>

using namespace std;


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

int main(){
	cout.setf(ios::fixed);
	cout.precision(5);
	solve();

	return 0;
}

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

using namespace std;

int main(void){
	int s = 0, d;
	cin >> d;
	
	for(int i = d; i < 600; i += d) s = s + i * i;

	cout << s << endl;

	return 0;
}

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

using namespace std;

int pow(int a)
{
	return a*a;
}

int main(void)
{
	int n,sum;
	while (scanf("%d",&n)!=EOF) {
		sum=0;
		for(int i=1;i<(600/n);i++){
			sum+=pow(n*i)*n;
		}
		
		cout<<sum<<endl;
	}
	
	return (0);
}

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

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

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

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

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

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

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

int main() {

        int d;
        double sum;
        int i;

        scanf("%d",&d);

        for(i=0;i<600/d;i++) {
            double x = i*d;
            
            sum = f(x)*d+sum;
            
        }

        printf("%f\n",sum);

        return 0;
}