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

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

using namespace std;

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

	while (scanf("%d", &ret) != EOF){

		for (int i = 1; i*ret <= 600-ret ;i++){
			sum += pow(i*ret,2) * ret;
			cout << i << ":" << sum << endl;
		}

		cout << sum << endl;

		sum = 0;
	}

	return 0;
}

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

//const static double	de_PI	= 3.14159265358979323846;
//const static int	de_MOD	= 1000000007;
//const static int	de_MAX	= 999999999;
//const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	double n = 0;
	std::vector<double> ans;

	while (std::cin >> n) {
		double sum = 0;
		double div = 600 / n;
		for (int i = 1; i < div; i++) {
			sum += n*(n*i)*(n*i);
		}
		ans.push_back(sum);
	}

	std::for_each(ans.begin(), ans.end(), [](int i) {std::cout << i << std::endl; });
}

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

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

C++: #include <iostream>
using namespace std;
int main( void )
{
	while ( 1 )
	{
		int d;
		cin >> d;
		if ( cin.eof() )
			break;

		int sum = 0;
		for ( int i = d; i < 600; i += d )
		{
			sum += (i*i*d);
		}

		cout << sum << endl;

	}
	return 0;
}

C++: #include<iostream>

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

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

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

C++: #include <stdio.h>

int area(int d) {
    
    int i=0,n,x,y,s,sum=0;
    
     n = 600/d ;
　　for (i=0; i < n; i++){
　　    x = i*d;
　　    y = x*x;
　　    s= y*d;
　　    
　　    sum=sum+s;
　　}
　　return sum;
　
　　       
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}

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;

int main(void){
  int d;

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

  return 0;
}

C++: #include <iostream>

using namespace std;
#define f(x) x*x

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

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

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

C++: #include <iostream>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <sstream>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <complex>
#include <vector>
#include <cstdio>
#include <cmath>
#include <time.h>
#define all(c) ((c).begin(),(c).end())
#define rall(c) (c).rbegin(),(c).rend()
#define sort(v,n) sort(v,v+n)
#define vsort(v) sort(v.begin(),v.end())
#define vvsort(v) sort(v.begin(),v.end(),greater<int>())
#define ll long long
#define pb(a) push_back(a)
#define fi first
#define se second
#define inf 999999999
using namespace std;
const ll MOD = 1e9 + 7;
const double PI = acos(-1.0);
//---------------------------------------------------------------------------------------------//



int main() {
	int n;
	while (cin >> n) {
		ll sum = 0;
		int now = n;
		while (now < 600) {
			sum += now*now*n;
			now += n;
		}
		cout << sum << endl;
	}
	return 0;
}

C++: #include<stdio.h>

int sq(int n){
  return n*n;
}

int sum(int d,int n){
  if(n>=600){
    return 0;
  }
  else{
    return d*sq(n)+sum(d,n+d);
  }
}

void doit(){
  int n;
  if(scanf("%d",&n)!=EOF){
    printf("%d\n",sum(n,0));
    doit();
  }
}

int main(){
  doit();
  return 0;
}

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

int main() {
	ios_base::sync_with_stdio( false );

	int d;
	while( cin >> d ) {
		int area = 0;

		for( int x = d; x < 600; x += d ) {
			area += x*x * d;
		}

		cout << area << '\n';
	}
}

C++: #include <stdio.h>

#define BUF_SIZE 256

int main(void) {
	char buf[BUF_SIZE];
	int d, sum=0;
	int i;
	
	while (fgets(buf, sizeof(buf), stdin) != NULL) {
		sscanf(buf, "%d", &d);
		
		for (i=1; i*d<=600-d; i++) {
			sum+= i*d*i*d*d;
		}
		
		printf("%d\n", sum);
		sum=0;
	}
	
	return 0;
}

C++: #include <iostream>

using namespace std;

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

int main()
{
	solve();
	return(0);
}

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

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

}

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

using namespace std;

double y(double x){
	double y;
	y=x*x;
	return y;
}

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

C++: #include <stdio.h>

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

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

C++: /*AOJ 0014*/

#include<iostream>
using namespace std;

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

int main(){

	int sum = 0;
	int d;

	while(cin>>d){
		sum = 0;

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

		}

		cout<<sum<<endl;

	}

	return 0;
}

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

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

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

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

C++: #include <iostream>

using namespace std;

int func(int d){
    int rectangle;
    int n = d;
    int total = 0;
    
    while(n < 600){
        rectangle = n*n*d;
        total += rectangle; 
        n += d;
    }
    
    return total;
}


int main (int argc, char const* argv[]){
    int n;
    
    
    while((cin >> n)){
        cout << func(n) << endl;
        
    }
    
    
    return 0;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
#define INF 1000000
using namespace std;
int dx[] = {1,0,-1,0};
int dy[] = {0,1,0,-1};
int main(){
    int d;
    while(cin >> d){
        int s = 0;
        for(int i=d; i<600; i+=d){
            s += i*i*d;
        }
        cout << s << endl;
    }
    return 0;
}