Go: package main

import "fmt"

func main() {
	var d int
	for {
		fmt.Scan(&d)
		sum := 0
		for i := 0; i < 600/d; i++ {
			sum += d*d*i*d*i
		}
		fmt.Println(sum)
	}
}

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

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

using namespace std;
int main(int argc, char *argv[])
{

  int A;
  double inte;
  unsigned int S;//面積
  while(scanf("%d",&A)!=EOF){
    inte = A;
    S = 0;
    for(int i =inte;i <= 600-A; i+=inte){
      S += (i)*(i)*inte;
    }
    cout <<S<<endl;
  }

  return 0;
}

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

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

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

int main() {
	int d,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 <cstdlib>
#include <cmath>
typedef long long ll;
using namespace std;

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

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

    return ans;
}

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

    return EXIT_SUCCESS;
}

C++: #include <iostream>

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

C++: #include <iostream>

using namespace std;
typedef long long ll;
#define square(x) (x)*(x)

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

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 %d\n", a, i); 
  }

  printf("%d", a);

  return 0;
}

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
long long n, d, hasil;
int main(){
	while(cin >> d){
		hasil = 0;
		for(int i = d; i <= 600-d; i += d){
			hasil += d * pow(i, 2);
		}
		cout << hasil << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include<algorithm>
using namespace std;
int main()
{
    double d;
    int s;
    while(cin >> d){
        s = 0;
        for(int i = 1;d*i < 600;i++){
            s = s + i*i*d*d*d ;
        }cout << s << endl;
        
    }
}

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

using namespace std;

int d;

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


int main()
{
    cin >> d;
    int SquareAmount = 600/d;
    int TotalArea = 0;
    int Height;

    for(int y = d; y < 600; y = y + d)
    {
        Height = SquareTheX(y);
        TotalArea = TotalArea + (d*Height);
    }

    cout << TotalArea;
    return 0;
}

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

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

int get_input(void) {
    int d;
    std::cin >> d;
    if (std::cin.fail()) {
        exit(0);
    }
    return d;
}

long long unsigned int solve(int d){
    long long unsigned int acc = 0;
    for (int i = d; i <= 600-d; i+=d) {
        acc += f(i) * d;
    }
    return acc;
}

int main(void) {
    while(true) {
        std::cout << solve(get_input()) << std::endl;
    }
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int d;
  int s;
  int y;
  int x;
  while(cin>>d){
    s = 0;
    x = d;
    y = d*d;
    while(1){
      if(x == 600){
	break;
      }
      s += (y*d);
      x += d;     
      y = x*x;
      
    }
    cout<<s<<endl;
  }
}

C++: #include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;


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

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

C++: #include "bits\stdc++.h"
using namespace std;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	int d;
	while (cin >> d) {
		int area = 0;
		for (int x = d; x <= 600 - d;x += d) {
			area += x*x*d;
		}
		cout << area << endl;
	}
}

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

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

int main(){
	int d;
	while ( scanf(" %d", &d) != EOF ){
		long area=0;
		for(int i=0; i<600/d; ++i)
			area += d*func(i*d);
	
		printf("%ld\n", area);
	}

	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <math.h>
#include <map>
#include <vector>

using namespace std;



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

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

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