Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		d, _ := strconv.Atoi(sc.Text())
		var area int
		for i := 1; i*d < 600; i++ {
			area += d * (d * i) * (d * i)
		}
		fmt.Println(area)
	}
}

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

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

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

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

#define X_MAX 600

int main()
{
	int d;
	long s;
	int i;
	while(cin >> d)
	{
		s = 0;
		for(i=d; i<X_MAX; i+=d)
		{
			s += d * i * i;	/* d:width i*i:height */
		}
		cout << s << endl;
		
	}
	return 0;
}

C++: #include<iostream>
#define N 600
double f(double x){
    return x*x;
}


int main(void){
    int d,i;
    double sum;    
    while(scanf("%d",d)){
        sum=0;
        for(int i=d;i<N;i+=d){
            sum+=f(i);
        }
        std::cout<<sum<<std::endl;
    }
    return 0;
}

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

int main(){
	int d;
	int x;
	int s;
	
	while(cin >> d){
    s = 0;
		for(int i=d;i<600;i+=d){
			s += d*i*i;
		}
		cout << s << "\n";
	}
	return 0;
}

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

double dF(double x)
{
    return pow(x, 2);
}

double dIntegral(double d)
{
    double ans = 0;
    for(int i = 1; i <= 600 / d; i++)
    {
        ans += dF(i * d);
    }

    return ans;
}

int main()
{
    double d;
    while(cin >> d)
    {
        cout << dIntegral(d) << endl;
    }

    return EXIT_SUCCESS;
}

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

C++: #include <iostream>

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

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

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


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

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

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

C++: #include <iostream>
 
using namespace std;
int main(void){
        int d;
        while(!cin.eof()){
                cin >>d;
                int total=0;
                for(int i=d; i<600; i+=d)
                        total+=i*i;
                total*=d;
                cout << total << endl;
        }
        return 0;
}

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

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

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

#define F(d, i) ((d) * (i) * (i))

int main(void)
{
	int d;

	while(cin >> d) {
		unsigned long s = 0;

		for(int i = d; i < 600; i += d) {
			s += F(d, i);
		}

		cout << s << endl;
	}

	return 0;
}

C++: #include<iostream>

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

C++: #include <stdio.h>

int main(int argc, char** argv)
{
  int d;
  
  while (fscanf(stdin, "%d", &d) == 1) {
    int s = 0;
    
    for (int i = 0; i < 600 / d; i ++)
      s += i * d * i * d * d;
    
    fprintf(stdout, "%d\n", s);
  }
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int d;
	while(cin>>d)
	{
		if(d==0) break;
		int y=0,m=0;
		while(m<600){
		
		y+=m*m*d;
		m+=d;;
		}
		cout<<y<<endl;
	}
}

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

int main(){
	int sigma[200] = {0},cor = 0,x,dx;
	while(cin >> dx){
		for(x = 0;x < 600;x+=dx){
			sigma[cor] += dx*x*x;
		}
		cor++;
	}
	for(int i= 0;i < cor;i++){
		cout << sigma[i] << endl;
	}
	return 0;
}

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

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main()
{
    float d;
    float LuasPersegiPanjang = 0;
    float TinggiPersegiPanjang[600];
    float TinggiSementara;

    cin >> d;

    float BanyakPersegiPanjang = 600/d;
    TinggiSementara = d;
    for(int x = 0; x < BanyakPersegiPanjang-1; x++)
    {
        TinggiPersegiPanjang[x] = TinggiSementara*TinggiSementara;
        TinggiSementara = TinggiSementara + d;

        LuasPersegiPanjang = LuasPersegiPanjang + (TinggiPersegiPanjang[x] * d);
    }

    cout << LuasPersegiPanjang;


}

C++: #include <iostream>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int d = n;
    long long s = 0;
    while (d < 600) {
      s += n * d * d;
      d += n;
    }
    cout << s << endl;
  }
}

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

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

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

int f_r(int d,int x){
	x=x+d;
	if(x>=600)return 0;
	return d*x*x+f_r(d,x);
}
int main(){
	int d;
	int s;
	while((scanf("%d",&d))!=EOF){
		
		s=f_r(d,0);
		printf("%d\n",s);
	}
	return 0;
}

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

int area(int d) {
　　return (d*d);
}

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

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

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

C++: #include <cstdio>
using namespace std;
 
int main() {
  int d;
  while (scanf("%d", &d) != EOF) {
    int sum = 0;
    for (int i = 0; i*d < 600; ++i) {
      sum += i*i;
    }
    printf("%d\n", sum*d*d*d);
  }
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<sstream>
#include<stack>
#include<map>
using namespace std;
#define pd pair<double,double>

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

C++: #include<iostream>

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

C++: #include <stdio.h>
int main() {int RideBack[605];int i,j;for (i=0;i<600;RideBack[i]=i*i,i++);while (scanf("%d",&i)!=EOF) {int ans=0;for (j=0;j<600;j+=i) ans+=RideBack[j]*i;printf("%d\n",ans);}return 0;}

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

#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)
int main() {
	int n; 
	while(1) {
		if(scanf("%d", &n) == EOF) break;
		int total = 0;
		rep2(i,1,(600/n)) {
			total += n * n * i * n * i;
		}
		cout << total << endl;
	}
	return 0;
}

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

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