Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	area := 0
	for sc.Scan() {
		n, _ := strconv.Atoi(sc.Text())
		area = 0

		for i := 1; i < 600/n; i++ {
			area += n * (n * i) * (n * i)
		}

		fmt.Println(area)

	}
}

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

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