Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

C++: #include <stdio.h>

int f(int x);

int main(void){
    int d;
    long s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*f(i*d);
        }
	    printf("%ld\n", s);
    }
    return 0;
}

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

C++: #include<iostream>
#include<string>
using namespace std;
int main()
{
    int n,ans=0;
    while(cin>>n){
        for(int i=n;i<600;i+=n)ans+=n*i*i;
        cout<<ans<<endl;
        ans=0;
    }
}

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

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

int main(void){

    int area = 0;

    int n,x,y;
    while(cin >> n){

        for(int i = 0;i < 600 / n -1 ;i++){

            x = (i+1) * n;
            y = x * x;
            area += n * y;
        }
        cout << area << endl;
        area = 0;
    }


    return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>

using namespace std;

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

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

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

int main() {
	ios :: sync_with_stdio(false);
	for(int d; cin >> d; ) {
		int ans = 0;
		for(int i = 0; i < 600; i += d)
			ans += d * i * i;
		cout << ans << '\n';	
	}
	return 0;
}

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

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

int main(void) {
    int d;
    while(cin >> d) {
        int width = d; int height = d;
        long long sum = 0;
        while(height <= 600 - d) {
            sum += width * f(height);
            height += d;
        }
        cout << sum << endl;
    }
    return(0);
}

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

int GetLowerApproximatedArea(int Delta)
{
	int SumArea = 0;
	for(int i = 0; Delta * i < 600; i++){
		SumArea += Delta * Delta * i * Delta * i;
	}
	return SumArea;
}

int main()
{
	while(true){
		int Delta;
		cin >> Delta;
		if(cin.eof() == true) break;
		cout << GetLowerApproximatedArea(Delta) << endl;
	}
	return 0;
}

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

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

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

int main()
{
    int d;
    while (cin >> d)
    {
        cout << integral(d) << endl;
    }
    return 0;
}

C++: #include <fstream>
#include <iostream>
#include <cmath>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
using namespace std;

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

int main() {
  int d;
  int D = 600;
  cin >> d;
  int s = 0;
  for (int i = 1; i * d < D; i++)
    s += f(i * d) * d;

  cout << s << endl;
}

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

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

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

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


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

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>
//using namespace System;

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

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

int GetLowerApproximatedArea(int Delta)
{
	int LowerApproximatedArea = 0;
	for(int i = 0; Delta * i < 600; i++){
		LowerApproximatedArea += Delta * Delta * i * Delta * i;
	}
	return LowerApproximatedArea;
}

int main()
{
	while(true){
		int Delta;
		cin >> Delta;
		if(cin.eof() == true) break;
		cout << GetLowerApproximatedArea(Delta) << endl;
	}
	return 0;
}

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

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

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

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

	return 0;
}

C++: #include <stdio.h>

long f(int x);

int main(void){
    int d;
    long s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*f(i*d);
        }
	    printf("%ld\n", s);
    }
    return 0;
}

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

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

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

int main(void){
	int dx;
	while(cin>>dx){
		int sum=0;
		for(int i=1;i*dx<600;i++){
			sum+=dx*f(i*dx);
		}
		cout<<sum<<endl;
	}
}

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

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

C++: #include<cstdio>
int main(){
    int d;
    while(scanf("%d",&d)!=-1){
        int ans=0;
        int upto=600-d;
        for(int i=d;i<=upto;i+=d){
            ans+=(i*i)*d;
        }
        printf("%d\n",ans);
    }
}

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\n", a);

  return 0;
}

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

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

C++: #include<iostream>

using namespace std;

int main() {

	int d;

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


	return 0;
}

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

int main(void){
  int n, res;
  double buf;
  while(cin >> n){
    res = 0;
    for(int i=0;i<=600-n;i+=n){
      res += pow(i,2) * n;
    }
    cout << res;
  }
  return 0;
}