Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	n, err := strconv.Atoi(nextString())
	return n, err
}

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

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		d, err := nextInt()
		if err != nil {
			break
		}

		area := 0
		for i := 0; i < 600/d; i++ {
			x := i * d
			area += f(x) * d
		}
		fmt.Println(area)
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rrep(i,n) for (int i=n;^i;i--)
#define ALL(v) v.begin(),v.end()
// #define int ll 
#define eps 1e-9
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))

template<class T> inline void chmax(T &a, const T &b) { if(a < b) a = b; }
template<class T> inline void chmin(T &a, const T &b) { if(a > b) a = b; }
typedef long long ll;

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

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

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

C++: #include<iostream>

#define NUM 20

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main(){
	double d;

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

}

C++: #include <stdio.h>
int main(void){
   
long i,d,b,s,t,y,sum=0;
   while(scanf("%d", &d)!= EOF) {
   b=600/d;
           for(i=1;i<b;i++){
           y=i*d;
           t=y*y;
           s=d*t;
           sum+=s;
       }
       printf("%d",sum);
       if(d == 0) {
   break;
   }
       }
   return 0;
   }

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

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

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

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

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

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

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

C++: #include<cstdio>

int d;
int n;
int count=0;

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

C++: #include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
#include <stack>
using namespace std;

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

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int w;
    while(scanf("%d",&w)!=EOF)
    {

        int i;
        long long area = 0;
        for(i=w;i<600;i+=w)
        {
            area += w*i*i;
        }
        printf("%lld\n",area);
    }

}

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

int main()
{
	int d;
	while(cin>>d)
	{
	long long ans = 0;
	

	for ( int i=0; i<600; i+=d )
	{
		ans += d*i*i;
	}

	cout << ans << endl;
	}
	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>
using namespace std;

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

int main(){
	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;
	}
}

C++: #include<cstdio>
#include<cstring>
#include<algorithm>
#include<functional>
using namespace std;
int main(void)
{
	int i,y,x,d;
	int sum; 
	while(scanf("%d",&d)!=EOF) {
		sum=0;
		for(i=0;i<600;i+=d) sum+=(i*i)*d;
		printf("%d\n",sum);
	}
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

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

C++: #include<iostream>

using namespace std;

int main() {
	int d, x, y, s = 0;
	while (cin >> d) {
		x = 600;
		for (x -= d; x > 0; x -= d) {
			y = x * x;
			s += y * d;
		}
		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*(60/i));
    }
}

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

using namespace std;

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


	return 0;
}

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

	return 0;
}

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

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

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

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

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

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

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

#define B 600

int f(int x);

using namespace std;

int main(void) {
  int d, S = 0;
  while(cin >> d) {
    for(int i = 0; i < B/d; i++) {
      S = S + d*f(i*d);
    }
    cout << S << '\n';
    S = 0;
  }

  return 0;
}

int f(int x) {
  return pow(x,2);
}

C++: #include<iostream>
#include<stdio.h>
#include<vector>
#include<math.h>

using namespace std;

int main(){
	int ret=0;
	int sum = 0;

	while (scanf("%d", &ret) != EOF){

		for (int i = 1; i*ret <= 600-ret ;i++){
			sum += pow(i*ret,2) * ret;
		}

		cout << sum << endl;

		sum = 0;
	}

	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){

	int d;
	while(1){

    cin >> d;

    if(cin.fail()) break;

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

    cout << s << endl;


	}

	return 0;
}

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