Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	n, err := strconv.Atoi(nextString())
	return n, err
}

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

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		d, err := nextInt()
		if err != nil {
			break
		}

		area := 0
		for i := 0; i < 600/d; i++ {
			x := i * d
			area += f(x) * d
		}
		fmt.Println(area)
	}
}

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

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

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


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

int main(void)
{
  int a=0, i, d;

  scanf("%d", &d);

  for(i=1; i < 600/d; i++)
  {
    a = d * f(d*i) + a;
  }

  printf("%d", a);

  return 0;
}

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

int main()
{
	int d;

	while(std::cin >> d)
	{
		int vol=0;

		for(int i=1; i*d<600; ++i)
		{
			vol += d*(d*i)*(d*i);
		}

		std::cout << vol << '\n';
	}

}

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 <bits/stdc++.h>
using namespace std;

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

C++: #include <stdio.h>

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

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

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

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