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)

	}
}

Python: while True:
    try:
        d = int(input())
    except:
        break
    print(sum(d * x**2 for x in range(d, 600, d)))

Python: while(1):
    try:
        n = int(input())
        a = list(range(0,600,n))
        s = sum([i**2 for i in a])*n
        print(s)
    except EOFError:
        break

Python: def f(x):
  return x*x
ds=[]
while True:
  try:
    ds.append(int(input()))
  except EOFError:
    break
for d in ds:
  area=0
  for s in range(0,int(600/d)):
    area+=f(s*d)*d
  print(area)

Python: for i in range(1,21):
    try:
        s=0
        n=int(input())
        for j in range(n,600-n+1,n):
            d=n*(j**2)
            s+=d
        print(s)
    except EOFError:
        break

Python: 
import sys

def integral(n):

    sumnum = 0

    for i in range(1,601 - n):
        if i % n == 0:
            sumnum += i * i * n

    return sumnum

if __name__ == '__main__':

    nums = []

    for n in sys.stdin:
        if n == "\n":
            break
        else :
            nums.append(int(n))

    for n in nums:
        print(integral(n))

Python: while True:
    try:
        d = int(input())
        sum = 0
        n = d
        while n < 600:
            sum += d * (n ** 2)
            n += d
        print(sum)
    except EOFError:
        break

Python: import sys

def f(x):
    return x ** 2

def integral(d):
    s = f(d) * d
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s

lines = sys.stdin.readlines()
for line in lines:
    print(integral(line))

Python: for line in open(0).readlines():
    D = int(line)
    ans = 0
    for x in range(0, 600, D):
        ans += x*x
    print(ans * D)

Python: import sys

for l in sys.stdin:
    d=int(l)
    print(d*sum(map(lambda x:x**2,range(0,600,d))))

Python: while True :
    try :
        d = int(input())
    except EOFError :
        break
    
    S = 0
    for i in range(600//d) :
        S += (i * d)**2 * d
    print(S)

Python: import sys
x = 600

lines = sys.stdin.readlines()
for line in lines:
    d = int(line)
    s = 0
    for i in range(x//d):
        s += (i * d) ** 2
    print(s * d)

Python: import sys

def f(x):
    return x**2

def integral(d):
    s = 0
    for _d in range(1, int(600/d)):
        s += f(d * _d) * d
    return s

def run():
    for d in sys.stdin:
        print(integral(int(d)))

if __name__ == '__main__':
    run()

Python: while True:
    try:
        d = int(input())
    except:
        break
    s = 0
    x = 0
    dx = 600//d
    for i in range(dx):
        s += x**2*d
        x += d
    print(s)

Python: while True:
    try:
        d = int(input())
    except:
        break
    x = 0
    for i in range(d,600,d):
        x += d*(i**2)
    print(x)

Python: # AOJ 0014 Integral
# Python3 2018.6.10 bal4u

import sys

for d in sys.stdin:
    a = int(d)
    print(sum(a * x**2 for x in range(a, 600, a)))

Python: try:
    while(1):
        d = int(input())
        s = 0
        for n in [i * d for i in range(1, 600)]:
            if n >= 600:
                break
            s += (n ** 2)

        print(s * d)
except:
    pass

Python: import sys

def f(x):
    return x ** 2

def integral(d):
    s = f(d) * d
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s

lines = sys.stdin.readlines()
for line in lines:
    print(integral(int(line)))

Python: while True:
    try: d = int(input())
    except: break
    print(sum([(i*d)**2*d for i in range(600//d)]))

Python: # 82
while True:
    try:
        q = round(600 / int(input()))
    except:
        break

    S = 0
    for i in range(1, q):
        S += (i * 600 / q) ** 2 * 600 / q
    
    print(round(S))

Python: import sys
 
def f(x):
    return x ** 2
 
def integral(d):
    s = 0
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s
 
lines = sys.stdin.readlines()
for line in lines:
    print(integral(int(line)))

Python: while True:
    try:
        d=int(input())
        ans=0
        for i in range(1,600//d):
            ans+=d*((i*d)**2)
        print(ans)
    except:
        break

Python: import sys

for line in sys.stdin:
    d = int(line)
    S = 0
    for x in range(0, 600, d):
        S += (x ** 2) * d
    print(S)

Python: # coding: utf-8

def f(x):
	return x**2

while True:
	try:
		d = int(raw_input())
		sum = 0
		for i in range(1,600/d):
			sum += f(i*d) * d
		print(sum)
	except EOFError:
		break

Python: while True:
    try:
        n = int(input())
    except EOFError:
        break

    step = 600//n

    area = 0
    for i in range(step):
        area += (i*n)**2 * n
    print(area)

Python: import sys
import math as mas

for t in sys.stdin:
	i=int(t)
	sum=0
	for j in range(0,600,i):sum+=i*j*j
	print(sum)

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))

Python: while True:
    try:
        d = int(input())
    except:
        break
    print(sum(d * x**2 for x in range(d, 600, d)))

Python: import sys
for d in map(int, sys.stdin):
    a=0
    for i in range(0,600,d):
        a+=i*i
    print(a*d)

Python: while(True):
    try:
        d = input()
        step = 600 / d
        ans = 0
        for i in range(step):
            ans += d * (i * d) ** 2
        print(ans)
    except Exception:
        break

Python: import sys

def Integral(x):
    return x**2

def test(d):
    s=0
    n=int(600/d)
    for i in range(1,n):
        s+=Integral(d*i)*d
    return s

for d in sys.stdin:
    d=int(d)
    print(test(d))

Python: # coding: utf-8
import sys

for line in sys.stdin:
    d = int(line)
    x = 0
    surface = 0
    for _ in range(int(600 / d) - 1):
        x += d
        surface += d * (x ** 2)
    print(surface)

Python: import sys
for line in sys.stdin:
    d = int(line)
    ans = 0;
    for i in range(d,600,d):
        ans += i * i * d
    print(ans)

Python: while 1:
    try:
        d=int(input())
        ans=0
        for i in range(600//d):
            ans+=d*d*d*i*i
        print(ans)
    except:break

Python: # coding=utf-8


def square(number: float) -> float:
    return number * number


if __name__ == '__main__':
    while True:
        s = 0
        try:
            d = int(input())
        except EOFError:
            break
        for i in range(600//d):
            s += square(i*d)*d
        print(s)

Python: # AOJ 0014 Integral
# Python3 2018.6.10 bal4u

while True:
    try:
        d = int(input())
        sum = 0
        for x in range(d, 600, d):
            sum += d * x**2
        print(sum)
    except EOFError:
        break

Python: d=int(input())
sum=0
for i in range(int(600/d)):
    sum+=(((i*d)**2)*d)
print(sum)

Python: print('test')

Python: import sys
for i in sys.stdin.readlines():
  s = 0
  x = int(i)
  for j in range(x,600,x):
    s += x * (j**2)
  print(s)

Python: X = 600

while True:
    try:
        d = int(input())
        result = 0
        for i in range(d, X, d):
            result += (i * i) * d
        print(result)
    except EOFError:
        break

Python: while True:
    try:
        x = int(input())
        ans = 0
        for i in range(x,600,x):
            y = i**2
            ans += y*x
        print(ans)
    except:
        break

Python: while True:
    try:
        d = int(input())
    except:
        break
    print(sum(d * x**2 for x in range(d, 600, d)))

Python: # -*- coding: utf-8 -*-

import sys
import os
import math

def f(x):
    return x * x

for s in sys.stdin:
    d = int(s)
    num = 600 // d

    S = 0
    for i in range(num):
        x = d
        y = f(d * i)
        S += x * y
    print(S)