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 <algorithm>
#include <iostream>
#include <vector>

using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;

#define MOD 1000000007
#define REP(i, N) for (int i = 0; i < N; ++i)
#define REP1(i, N) for (int i = 1; i <= N; ++i)
#define RREP(i, N) for (int i = N - 1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()

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

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

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

C++: #include<stdio.h>

int d,s;

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


	return 0;
}

C++: #include <iostream>

void calc(int vertical, int horizontal, int& area)
{
    if (0 >= vertical)
        return;

    area += (vertical * horizontal);

    return calc(vertical - horizontal, horizontal, area);
}
int main()
{
    int n = 0;

    while (std::cin >> n) {
        int area = 0;
        calc(600, n, area);
        std::cout << area << std::endl;
    }
}

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

int main(){
    // y = x^2
    int d, i, s;
    s = 0;
    for(cin >> d){
        for (i = 0; i < (600/d); ++i){
            s = s + (i * d) * (i * d) * d;
        }
        cout << s << endl;
    }
}

C++: #include <iostream>
#include <cstdio>
#include <complex>
#include <cmath>
#include <utility>
#include <algorithm>
using namespace std;

int main()
{
    int d;
    int S;
    while(cin >> d && d)
    {
        S=0.0;
        int a = 600/d;
        for(int i=1;i<a;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 sum = 0;

    for(int i = d; i <= 600 - d; i += d){
      int h = f(i);
      sum += h * d;
    }

    cout << sum << endl;
  }
}

C++: #include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
using namespace std;
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str();}
typedef vector<int> vi;
typedef vector<vi>  vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n) FOR(i,0,(n)-1)
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int INF = INT_MAX/10;

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

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

	return 0;
}

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

int main(){
	int d;
	while(cin >> d){
		vector<int> sec;
		for(int i = d; i < 600; i += d){
			int y, z;
			y = i * i;
			z = y * d;
			sec.push_back(z);
		}
		int sum = accumulate(sec.begin(), sec.end(), 0);
		cout << sum << endl;
	}
	return 0;
}

C++: #include <stdio.h>
int main(void){
   
int d,i,s,x,y;

   while(scanf("%d", &d)!= EOF) {
       int sum=0;
       
       for(i=1;i<600/d;i++){
           
           x=i*d;
           y=x*x;
           s=d*y;
           sum+=s;
           
       }
       printf("%d\n",sum);
       if(d == 0) {
           break;
           
       }
       
   }
   return 0;
    
}

C++: // Integral

#include <iostream>
using namespace std;

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

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

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

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

 	return 0;
}

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

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

	return 0;
}

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

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

C++: 
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
using namespace std;

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

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

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

using namespace std;

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

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

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

C++: #include <cstdio>
#define f(x)((x)*(x))
int main() {
	int d;
	while(scanf("%d",&d)!=EOF) {
		int sum=0;
		for(int i=1;i*d<=600-d;i++) {
			sum+=f(i*d)*d;
		}
		printf("%d\n",sum);
	}
}

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

double fx (double d, double x) 
{
	if (x == 0) return 0;
	else return d * x * x + fx(d, x - d);
}

int main(void)
{
	double d, x;
	while (cin >> d) {
		x = 600;
		printf("%.0f\n", fx(d, x - d));
	}
	
	return 0;
}

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

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()

#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
#define MAX_N (100001)
typedef long long ll;

using namespace std;




signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	while (1) {
		int x = 0;
		int d; cin >> d;
		int ans = 0;
                if(cin.eof()) break;
		while (x < 600) {
			ans += x * x;
			x += d;
		}
		ans *= d;
		cout << ans << endl;
	}
}