Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	area := 0
	for sc.Scan() {
		n, _ := strconv.Atoi(sc.Text())
		area = 0

		for i := 1; i < 600/n; i++ {
			area += n * (n * i) * (n * i)
		}

		fmt.Println(area)

	}
}

C++: #include <iostream>

using namespace std;

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

int main() {
    int d, i, x, max, sum = 0;
    while(cin >> d){
        max = (600-d) / d;
        sum = 0;
        for(i = 1, x = d; i <= max; ++i, x = i*d) {
            sum += d * y(x);
        }

        cout << sum << endl;
    }
}

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

using namespace std;

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

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;
		d=0;
		for(int i=0 ; i<num ; i++){
			s+=od*f(d);
			d+=od;
		}
		cout << s << endl;
		s=0;
	}
	return 0;
}

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

using namespace std;

int main(void){
	int s = 0, d;
	cin >> d;
	
	for(int i = d; i < 600; i += d) s = s + i * i;

	cout << s;

	return 0;
}

C++: #include <iostream>

using namespace std;

int d;

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

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

    return 0;
}

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

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

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

int main()
{
  int d;
  int i,j;
  int h;

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

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

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

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

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

int main(void)
{
  int a, 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 f(int d) {
	int y;
	y = d * d;
	return y;
}


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

C++: #include<iostream>

using namespace std;

int main(void) {
	int d;
	long long res;
	int i;

	while(!cin.eof()) {
		cin >> d;
		res = 0;
		for(i = d; i < 600; i+=d) {
			res += i*i*d;
		}
		if(!cin.eof()) { cout << res << endl; }
	}

	return 0;
}

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

int main(){
	int d, ans = 0, n;
	while(cin >> d){
		//ans = pow(d, 3);
		n = 600 / d - 1;
		ans *= n*(n+1)*(2*n+1) / 6;
		cout << ans << endl;
	}
	return 0; 
}

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

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

C++: #include<iostream>
#include<vector>
int main()
{
	std::vector<int>result;
	for (int d; std::cin >> d;)
	{
		result.push_back(0);
		for (int i = d; i < 600; i += d)
		{
			result.back() += i * i * d;
		}
	}
	for (auto i : result)
	{
		std::cout << i << std::endl;
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){

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

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

#define MAX 256
#define S(x) (x*x)

int f(int z){
	if (z < 10)return 1;
	return 1 + f(z / 10);
}

int main(void){
	
	int ans[MAX];
	for (int i = 0; i < MAX; i++){
		ans[i] = 0;
	}

	int d;
	int i = 0;

	while (scanf("%d", &d) != EOF){
		for (int j = d; j <= 600 - d; j += d){
			ans[i] += S(d)*d;
		}
		i++;
	}

	for (int j = 0; j < i; j++){
		printf("%d\n", ans[j]);
	}

	return 0;
}

C++: #include <cstdio>

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

int main ()
{
  int i, dist, tmp;
  int area = 0;

  while (scanf("%d", &dist) != EOF) {
    for (i = 0; i < 600/dist; i++) {
      tmp = dist * (i + 1);
      area += dist * func(tmp);
    }
    printf("%d\n", area);
    area = 0;
  }

  return 0;
}

C++: /*
find integral(0, 600) x^2
*/

#include<iostream>
#include<fstream>
using namespace std;

int f(int x);
const int btm = 0, top = 600;

int main() {
	int d;

	while(cin >> d && d != EOF) {
		int itg = 0;
		for(int i = btm + d; i < top; i += d) { itg += f(i) * d; }

		cout << itg << endl;
	}
}

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

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

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

int main(){

  int d;

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

C++: #include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;
#define PAIRCOMP(c,comp) [](const pair<ll,ll>& lhs,const pair<ll,ll>& rhs){return lhs.c comp rhs.c;}

using namespace std;
using ll = long long;

constexpr ll atcoder_mod = 1e9+7;

template<typename T=int>
T in(){T x; cin >> x; return (x);}
template<typename T=int,typename C=vector<T>>
C vecin(int N){C x(N);REP(i,N){x[i]=in<T>();}return move(x);}

void vout(){cout << endl;}
template<typename Head,typename... Tail>
void vout(Head&& h,Tail&&... t){cout << ' ' << h;vout(forward<Tail>(t)...);}
void out(){cout << endl;}
template<typename Head,typename... Tail>
void out(Head&& h,Tail&&... t){cout << h;vout(forward<Tail>(t)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	ll d;
	while(cin>>d){
		int n=600/d;
		ll sum=0;
		REP(i,n-1){
			sum += (i+1)*(i+1)*d*d*d;
		}
		out(sum);
	}

	return 0;
}

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

double pi = acos(-1);

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

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


li func(li x){
	return x*x;
}

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