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>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
	int d, x, y, Y[600];
	int i, sum = 0;

	

	for(i = 0;i < 600;i++){
		Y[i] = 0;
	}
	while(cin >> d){
		for(i = 1;d*i < 600;i++){
			x = d * i;
			y = x * x;
			Y[i] = y * d;
		}
		
		for(i = 1;i < 600;i++){
			sum += Y[i];
		}
		cout << sum << endl;
		sum = 0;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
signed main(){
	int a;
	while( scanf("%d", &a) != EOF ){
		int ans = 0;
		for(int i=a;i<600;i+=a){
			ans += i*i*a;
		}
		cout << ans << endl;
	}
	return 0;
}

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

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

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

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

#define f(x) ((x) * (x))

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

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int INF = 1000000000;
#define REP(i,s,n) for(int i=(int)(s);i<(int)(n);i++)
#define rep(i,n) REP(i, 0, n)
int main(){
    for(int d; cin >> d; ){
        int ans = 0;
        for(int dd = d; dd <= 600 - d; dd += d)
          ans += d * dd * dd;
        cout << ans << endl;
    }
    return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;

int main()
{
    int d;
	while(cin >> d){
	int ans=0;
	for(int i=1;i*d<600;i++){
		ans+=d*(i*d)*(i*d);
	}
	cout << ans << "\n";
	}
    return 0;
}

C++: #include<iostream>
using namespace std;
int a;
int main() {
	while (cin >> a) {
		cout << (900 - a)*(900 - a) * 100 - 9000000 << endl;
	}
}

C++: #include <iostream>

using namespace std;

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

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

C++: #include <stdio.h>

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

C++: #include <iostream>
using namespace std;
int main()
{
	int d, k, s, x;
	while (cin >> d){
		s = x = 0;
		k = 600 / d;
		for (int i = 0; i < k; ++i, x += d)
			s += x * x * d;
		cout << s << "\n";
	}
	return 0;
}

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

int main(){
	int d,i,ans,d_di;
	while(cin>>d){
		ans = 0;
		for(i = d;i < 600;i += d){
			ans += i*i*d;
		}
		cout<<ans<<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 << endl;
  }
  return 0;
}

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

int main(){

  int d;

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

C++: #include <algorithm>
#include <cmath>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <cassert>
#include <functional>

using namespace std;

#define LOG(...) printf(__VA_ARGS__)
//#define LOG(...)
#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);++i)
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define RSORT(c) sort((c).rbegin(),(c).rend())
#define CLR(a) memset((a), 0 ,sizeof(a))

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

const int dx[] = { -1, 0, 1, 0 }; const int dy[] = { 0, 1, 0, -1 };

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

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

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

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

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

int main()
{
  int d;

  while (cin >> d){
    int num = 600;
    long long res = 0;
    for (int i = 1; i * d != 600; i++){
      res += f(d * i) * d;
    }
    cout << res << endl;
  }
  return (0);
}

C++: #include <stdio.h>

int main() {	
	int d;
	while(~scanf("%d", &d)) {
		int ans = 0;
		for(int i = 1; d * i <= 600; ++i) {
			ans += d * d * d * (i - 1) * (i - 1);
		}
		printf("%d\n", ans);
	}
	return 0;
}

C++: #include <iostream>

int main(){
	const int x = 600;
	int d;
	
	while(std::cin >> d){
		int sum = 0; //面積の合計値
		for(int i = d; i < x; 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 area=0;
    for(int i=0;i<600;i+=d){
      area += d*i*i;
    }
    cout<<area<<'\n';
  }
  return 0;
}

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

using namespace std;

int main(){
  int d;
  int ans;

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

C++: #include <iostream>

using namespace std;

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

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

int solve(int d, int tate){
  return d * tate * tate;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int d;
  while(cin>>d){
    int ans = 0;
    for(int i=0;i<=600-d;i+=d)
      ans += solve(d, i);
    cout << ans << endl;  
  }

  return EXIT_SUCCESS;
}

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

using namespace std;

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

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