Go: package main

import "fmt"

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

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

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

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

int d;
int sum = 0;

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

C++: #include<iostream>

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

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

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
	int d, x, y, Y[600];
	int i, sum = 0;

	

	for(i = 0;i < 600;i++){
		Y[i] = 0;
	}
	while(cin >> d){
		for(i = 1;d*i < 600;i++){
			x = d * i;
			y = x * x;
			Y[i] = y * d;
			
		}
		
		for(i = 1;i < 600;i++){
			sum += Y[i];
		}
		cout << sum << endl;
	}
	return 0;
}

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

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++: #include<iostream>
using namespace std;
int main(){
	int n;
	while (cin >> n){
		int sum = 0;
		for (int i = n; i<600; i += n){
			sum += n*i*i;
		}
		cout << sum << endl;
	}
}

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<stdio.h>
int l;
int ans=0;

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

C++: #include <iostream>
using namespace std;
int main(void){
    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<iostream>
using namespace std;

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

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

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

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

}

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


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

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

int f(int x);

int main(void){
	
	int large, input, count = 0;
	vector<int> d;

	// テ・ツ仰陛ァツ堋?」ツ?ォテァツ「ツコテ、ツソツ敕」ツ?療」ツ?淌ゥツ?催・ツ按療」ツ?ォテ・ツ?・テ・ツ環崚」ツつ津ヲツオツ?」ツ?療ィツセツシテ」ツつ?
	while (cin >> input){
		d.push_back(input);
		count++;
	}

	// テ・ツ青?・ツ?・テ・ツ環崚」ツ?ォテ・ツッツセテ」ツ?療」ツ?ヲテヲツ督催、ツスツ?
	for (int i = 0; i < count; i++){
		large = 0;
		for (int j = 0; j < (600 / d[i]) - 1; j++){
			large += f((j + 1) * d[i]) * d[i];
		}
		cout << large;
		printf("\n");
	}

	return 0;
}

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

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

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

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

int main()
{
	int d;
	for (; cin >> d;)
	{
		int s = 0;
		int x = d;
		for (; x < 600; x += d)
		{
			s += x * x * d;
		}

		cout << s << endl;
	}
}

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

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

int main(){
    // y = x^2
    int d, i, s;
    while(cin >> d){
        s = 0;
        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 a,b,i;
    while( cin >> a ) {
        b = 0;
        i = 0;
        
        while( i < 600 / a) 
		b += a * i * a * i++ * a;
		
        cout << b << "\n";
    }
}

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

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

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;
 
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0014

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

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

int main(){
	int d;
	while(cin >> d){
		while(600 % d){
			cout << "wrong value\n";
			cin >> d;
		}
		int s = 0, h = d, num = 600 / d;
		for(int i = 0;i < num - 1;i++){
			s += (d * pow((600 - h), 2));
			h += d;
		}
		cout << s << "\n";
	}
    return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(){
  int d;
  while(cin >> d){
    int s = 0;
    for(int t = d; t<=600-d; t+=d)
      s += t*t*d;
    cout << s << 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+=i*i*n;
  }
  cout<<ans<<endl;
 }
 return 0;
}

C++: #include <iostream>

int area(int n, int m);

int main()
{

	int n;

	while (std::cin >> n)
	{
		std::cout << area(n, 600) << std::endl;
	}


}

int area(int n, int m)
{
	int area = 0;
	while (m > 0)
	{
		area += (m - n) * (m - n) * n;
		m -= n;
	}

	return area;
}

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

int f(int d,int i){
  int s;

  s = d * i;

  return s * s;
}

int main(){
  int d, sum;

  while(scanf("%d", &d) != -1){
    sum = 0;

    for(int i = 1;d * i < 600;i++){
      sum = sum + f(d, i) * d;
    }

    cout << sum << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

	while(cin >> d){

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

}

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

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int d;
  while (cin >> d) {
    int s = 0;
    for (int x = d; x < 600; x += d) {
      s += x * x * d;
    }
    cout << s << endl;
  }
}

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

int main() {

  int d;
  while( cin >> d ) {

    long long int s = 0;

    for ( int i = 0; i < 600/d; i++ ) {

      int x = i * d;
      s += x*x*d;

    }

    cout << s << endl;

  }

  return 0;

}

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

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