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>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>	// require sort next_permutation count __gcd reverse etc.
#include <cstdlib>	// require abs exit atof atoi 
#include <cstdio>		// require scanf printf
#include <functional>
#include <numeric>	// require accumulate
#include <cmath>		// require fabs
#include <climits>
#include <limits>
#include <cfloat>
#include <iomanip>	// require setw
#include <sstream>	// require stringstream 
#include <cstring>	// require memset
#include <cctype>		// require tolower, toupper
#include <fstream>	// require freopen
#include <ctime>		// require srand
#define rep(i,n) for(int i=0;i<(n);i++)
#define ALL(A) A.begin(), A.end()

using namespace std;

typedef long long ll;
typedef pair<int, int> P;

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

int main()
{
//	cut here before submit 
//	freopen ("testcase.Integral", "r", stdin );
	string str = "";

	while (getline (cin, str ) ){ 
		stringstream ss (str );
		int d;
		ss >> d;
		int area = 0;
		for (int x = d; x <= 600 - d; x += d ){
			area += d*f(x);
		} // end for
		cout << area << endl;
	} // end loop
		
	return 0;
}

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

int main() {
  int d;
  int sum;

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

  return 0;
}

C++: #include<iostream>
#include<sstream>
#include<fstream>
#include<cstdio>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
using namespace std;

int main(){
	int n;
	while(scanf("%d",&n)==1){
		long long k = 600/n-1;
		long long ex = (n*pow(n,2)*((k*(k+1)*(2*k+1))/6));
		cout<<ex<<endl;
	}
	return 0;
}

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

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

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

#define MAX 256
#define S(x) (x*x)

int f(int z){
	if (z < 10)return 1;
	return 1 + f(z / 10);
}

int main(void){
	
	int ans[MAX];
	for (int i = 0; i < MAX; i++){
		ans[i] = 0;
	}

	int d;
	int i = 0;

	while (scanf("%d", &d) != EOF){
		for (int j = d; j <= 600 - d; j += d){
			ans[i] += S(j)*d;
		}
		i++;
	}

	for (int j = 0; j < i; j++){
		printf("%d\n", ans[j]);
	}

	return 0;
}

C++: /*
C++ ???????????????????????????????????¬??????
??????AOJ-ITP1??????????????????
*/
#define _USE_MATH_DEFINES

#include <iostream> // ?¨??????\??????
#include <fstream>  // ??????????????\??????
#include <string>   // ???????????¢???
#include <vector>   // ???????????????
#include <cmath>    // ??°??????
#include <iomanip>  // stream???????????¢???
#include <algorithm>// max??¢??°??????

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;        // ????´???°????????????????????????
using std::fixed;         // ???????????????????¨???????????????????????????????
using std::setprecision;  // ?????°????°???°?????\???????????°????????????????????¨????????\???

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

C++: #define scanf_s scanf
#include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
using namespace std;
#define MAX 150
#define CONSTNUM 600
int main(void)
{
	int d, sum = 0;
	while(scanf_s("%d", &d) != EOF){
		for (int i = 1; i < CONSTNUM / d; ++i) {
			sum += ((d*i)*(d*i) * d);
		}
		printf("%d\n", sum);
		sum = 0;
	}
}

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

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

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

C++: #include <iostream>

using namespace std;

int main(){
	double d;

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

}

C++: #include <iostream>

#define SQUARE(x) ((x) * (x))

using namespace std;

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

C++: while a=gets
	a=a.to_i
	c=a.to_i
	b=0
	while c<600
		b+=c*c*a
		c+=a
	end
	puts b	
end

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

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

int main()
{
  int d,S=0;

  while(cin>>d){
    int Z=d;
    for(;d<=(600-Z);d+=Z){
      S+=Z*f(d);
    }
    cout<<S<<endl;
    S=0;
  }
}

C++: #include <stdio.h>

int main(void)
{
	int d = 0;
	int i = 0;
	int s = 0;
	
	
	scanf("%d",&d);
	
	
	for( i = d ; i < 600 ; i += d )
	{
		s += i * i * d ;
	}
	
	
	printf("%d",s);
	
	return 0;
	
}

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

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

int main(){
	int d,s;
	while(scanf("%d",&d)!=EOF){
		s=0;
		for(int i=1;i<600/d;i++)s+=d*d*d*i*i;
		cout<<s<<endl;
	}
}

C++: #include<stdio.h>
int solve (int d)
 {
		 int ans = 0;
		 int i=d;
		 while(i<600)
         {
             ans+=d*i*i;
             i=i+d;
         }
		 return ans;
 }
int main()
{
    int d;
    while(scanf("%d",&d)==1)
    {
        printf("%d\n",solve(d));
    }
    return 0;
}

C++: #include <iostream>

int integral(int d){
    int area = 0;
    for(int i = 1; i < (600 / d); ++i){
        area += (d * (i  * d) * (i * d));
    }
    return area;
}

int main(){
    int d;
    while(std::cin >> d){
        if(d == -1)  break;
        std::cout << integral(d) << std::endl;
    }
    return 0;
}

C++: #include <stdio.h>

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

int main() {
	int d;
	int ans = ans;
	int i;

	while(scanf("%d", &d) != EOF) {
		for(i = 0; i < 600 / d; i++)
			ans += d * func(i * d);

		printf("%d\n", ans);
	}

	return 0;
}

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

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

C++: #include<iostream>

int main(){
	int d;
	while(std::cin>>d){
		int w=d,ans=0;
		while(w<=600-d){
			ans+=d*w*w;
			w+=d;
		}
		std::cout<<ans<<std::endl;
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main() {
  int x,m,n;
  n=0;
	while(cin >> x){
	  m = 600/x;
	  for(int i = 1;i<m;i++){
	    n += x*x*x*i*i;
	  }

	  cout << n << endl;

	}
	return 0;
}

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

#define loop(i,a,b) for(int i = a ; i< b ; i ++)

int main(void){
  int d;
  while(cin>>d){
    long long int sum =0;
    loop(i,1,600/d)
      sum+=i*i*d*d*d;
    cout<<sum<<endl;
  }
  retrun 0;
}

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

int main(void){
	int d;
	int s;
	int i;

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