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<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<algorithm>

using namespace std;

int main(void)
{
  int d=0;
  int i=0;
  int sq=0;

  while(scanf("%d", &d)!=EOF)
    {
      sq=0;
      for(i=d;i<600;i+=d)
	sq+=d*i*i;
      cout<<sq<<endl;
    }

}

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

int main() {
	while(true) {
		int d;
		if(scanf("%d", &d)<1)break;
		int sum = 0;
		for(int i = 0; i < 600; i+=d) {
			sum += i*i*d;
		}
		printf("%d\n", sum);
	}
	return 0;
}

C++: #include <iostream>

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

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

C++: #include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <string>
#include <stack>
#include <iomanip>
#include <numeric>
#include <queue>

using namespace std;
using ll = long long;
#define MOD 1000000007
#define INF 1LL << 59

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int d;
    while (cin >> d)
    {
        ll sum = 0;

        for (int i = 1;; ++i)
        {
            if (i * d >= 600)
                break;
            sum += d * (i * d) * (i * d);
        }
        cout << sum << endl;
    }
    return 0;
}

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

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int i;
  int d, sum;

  while (cin >> d) {
    sum = 0;

    for (i = 0; (i * d != 600); i++) {
      sum += d * (i * i * d * d);
    }

    cout << sum << endl;
  }

  return 0;
}

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

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

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

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

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

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

C++: #include<stdio.h>
#include<math.h>
int f(int);

int main(void){
    int a=0, b=600, x,d;
    int n,i;
    int s,sum;
    scanf("%d¥n　%d", &d,&d);
    n=(b-a)/d;
    
    sum=0.0;
    x=a;
    for(i=1; i<=n; i++){
        s=d*f(x);
        x+=d;
        sum+=s;
    }
    printf("%d\n", sum);
}
int f(int x){
    return x*x;
}

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

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

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

int main(){
	int d;

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

	return(0);
}

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

C++: #include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define all(c) c.begin(),c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x,y) x=min(x,y)
#define chmax(x,y) x=max(x,y)
using namespace std;
int main(){
	int d;
	while(cin>>d){600;x+=d
{
	s+=x*x*d;
}		int s
cout<<s<<endl;=0;
		for(int x=d;xM)
	}
}

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

C++: #include<bits/stdc++.h>
using namespace std;
/* 変数名を被らせない
   デバッグコードを取り除く 
　　提出する問題を間違えない */
#define ANS(x) cout<<x<<endl
#define debug(x) cout<<#x<<": "<<x
int main(){
  int d,s = 0;
  cin >> d;
  for(int i=1;i<=600/d-1;i++){
    s += (d*i)*(d*i)*d;
  }
  ANS(s);
}

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

int main()
{
    int n, m;
    long double ans = 0;
    cin >> n;
    m = 600 / n;
    for (int i = 0; i < 600; i += n) {
        ans += n*i * i;
    }
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>

using namespace std;

int main(){

	int d,e;
	cin >> d >> e;


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

	int t=0;
	for(int i=1;i<600/e;i++)
	t+=e*i*e*i*e;

    cout << s << endl;
    cout << t << endl;

	return 0;
}

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

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

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

C++: #include<stdio.h>

int main(void)
{
	int d,kai[100]={0},i,j=0,k;

	while(scanf("%d",&d) != EOF)
	{
		for(i=0;i<600;i+=d)
		{
		  kai[j]+=i*i*d;
		}
	j+=1;
	}
    for(i=0;i<j;i++)
	{
		printf("%d\n",kai[i]);
	}
  return 0;
}

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

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

C++: //Integral????§£???????????????????????????????????°10??? ????????¢???????????¢?????????????¨????????????????
#include <iostream>
using namespace std;

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

C++: #include<bits/stdc++.h>
#define ll long long
using namespace std;
 
signed main(){
int a;
while(cin>>a){
    ll s=0;
    for(int b=a;b<600;b+=a){
	s+=a*b*b;
	}
	cout<<s<<endl;
    }
}

C++: #include<stdio.h>
#include<math.h>
int f(int);

int main(void){
	int a=0, b=600, x,d;
	int n,i;
	int s,sum;
	scanf("%d", &d);
	n=(b-a)/d;
	
	sum=0.0;
	x=a;
	for(i=1; i<=n; i++){
		s=d*f(x);
		x+=d;
		sum+=s;
	}
	printf("%d\n", sum);
}
int f(int x){
	return x*x;
}

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

double func(double a){
    return a*a;
}
    
int main(){
    //インテグラル計算
    double d=1;
    long long int sum=0;
    while(cin >> d){
        for(double i=0;i<=(600-d);i+=d){
            sum += d * func(i);
        }
    cout << sum << endl;
    sum =0;
    }

    return 0;
}

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

using namespace std;


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

int main(){

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

	return 0;
}