Go: package main

import "fmt"

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

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>

#define NUM 20

using namespace std;

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

C++: #include <stdio.h>

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

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

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <sstream>
#include <cstdio>
#include <stack>
using namespace std;

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

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

long int i,c;
long int sum = 0;

long int area(int d) {
　　for(i=d; i<=600-d;i += d){
　　   c = d * i * i;
　　  sum = sum + c;
　　  
　　  
　　}
　　
　　return sum;
}

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

C++: #include <iostream>

int f(int x);

int main()
{
    int delta;
    while (std::cin >> delta) {
        int ans = 0;
        for (auto i = delta; i < 600; i += delta) {
            ans += delta * f(i);
        }
        std::cout << ans << std::endl;
    }

    return 0;
}

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

C++: #include <iostream>

using namespace std;

int main()
{
    int d;
    int Answer;

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

        cout << Answer << endl;
    }

}

C++: #include<iostream>
using namespace std;
typedef unsigned long long ull;


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

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

int ary[30];
int main(){
	int t=0;
	while(cin>>ary[t]){
		t++;
	}
	int res=0;
	for(int i=0;i<t;i++){
		res=0;
		for(int j=0;j<600;j+=ary[i]){
			res+=ary[i]*j*j;
		}
		cout<<res<<endl;
	}
	return 0;
}

C++: #include <cstdio>

bool testcase_ends() {
    int d;
    if (scanf("%d", &d) == EOF)
        return 1;

    auto f=[](int x)->int {
        return x*x;
    };

    int s=0;
    for (int i=0; i<600; i+=d)
        s += d*f(i);

    printf("%d\n", s);
    return 0;
}

int main() {
    int solved=0;
    while (!testcase_ends())
        ++solved;

    return !solved;
}

C++: #include<iostream>
#include<iomanip>
#include<stack>
using namespace std;
int f(int x) {
  return x*x;
}

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

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

int f(int x){
int y;
y=x*x;
return y;}
int main(){
int d,e,ans;
while(cin>>d){
ans=0;
e=600/d;
for(int i=0;i<e;i++){
ans+=f(i*d)*d;}
cout<<ans<<endl;}}

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

int main()
{
    int d,sum;
    while( cin >> d ) {
      sum = 0;
      for(int i = 1;i < 600/d;i++){
        sum += (i*d)*(i*d)*d;
      }
      cout << sum << 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;
  while (cin >> d) {
    int s = 0;
    for (int i = 1; i * d < D; i++)
      s += f(i * d) * d;

    cout << s << endl;
  }
}

C++: import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main(String args[]) throws IOException {

		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String sc="";
		while(true) {
			sc=br.readLine();
			int yakusu=Integer.parseInt(sc);
			int bunkatu=600/yakusu;

			long ans=0;
			for(int i=0; i<bunkatu; i++) {
				ans+=(yakusu*i)*(yakusu*i)*yakusu;
			}
			System.out.println(ans);
		}
	}
}

C++: #include <iostream>

using namespace std;

typedef long long ll;

int main ( void )
{
  ll in;
  while( cin >> in )
  {
     ll sum = 0;
     for ( ll i = in; i <= 600; i+=in )
     {
        sum += (i * in);
     }
     cout << sum << endl;
  }
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int d;
  while(cin>>d){
    int men=0;
    for(int j=d;j<600;j+=d)
      men+=d*(600-j)*(600-j);
    cout<<men<<endl;
  }
  return 0;
}

C++: #include <iostream>
#define REP(i,n) for(int i = 0; i < (n); ++i)
using namespace std;

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

C++: #include<iostream>

using namespace std;

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

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

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

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

int XX(int a, int d){
	return a * a * d;
}

int main(){
	int d;
	while (true){
		int sum = 0;
		cin >> d;
		if (cin.eof()) { break; }
		for (int i = 0;i<600/d;i++){
			sum += XX(i*d, d);
		}
		cout << sum << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <string>
#include <stack>

using namespace std;

int main (int argc, char * const argv[]) {
    // insert code here...
    int d;
		
	while(cin>>d){
		int S=0;
		
		for(int x=0;x+d<=600;x+=d){
			S+=d*(x*x);
		}
		cout<<S<<endl;
	}
	
	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main()
{
	int d;

	while (cin >> d)
	{
		cout << 72000000 - 180000 * d + 100 * d * d << endl;
	}

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void) {
    int d, s;
    while (1) {
        cin >> d;
        if (cin.eof()) break;
        s = 0;
        for (int x = d; x < 600; x += d) s += d * x * x;
        cout << s << endl;
    }
    return 0;
}

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

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

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

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