Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

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

using namespace std;

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

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

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

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

C++: #include <iostream>

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

C++: #include<iostream>
using namespace std;
 
int f(int _i)
{
    return _i*_i;
}
 
int main()
{
    int d;
    while(cin >> d){
        int S = 0;
 
        for(int i=0;i<600/d;i+di){
            S += f(d*i)*d;
        }
 
        cout << S << endl;
 
    }
    return 0;
}

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

inline int functional(int x){
	return x*x;
}

int main(void){
	int buf;
	int x_max = 600;
	std::vector<int> d;

	while(std::cin >> buf){
		d.push_back(buf);
	}
	
	int sum;
	for(int i = 0; i < (int)d.size(); ++i){
		sum = 0;
		for(int j = 0; j < x_max; j += d[i]){
			sum += d[i]*functional(j);
		}
		std::cout << sum << std::endl;
	}
	return 0;
}

C++: #define _GLIBCXX_DEBUG
#include <iostream>
#include <cmath>
#include <cstring>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <numeric>

typedef long long ll;

int main(int argc, char* argv[])
{
  ll d;
  while (std::cin >> d) {
    ll ans = 0;
    for (ll x = d; x < 600; x += d) {
      ans += d * x * x;
    }
    std::cout << ans << std::endl;
  }

  return 0;
}

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