Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

Python: #!/usr/bin/env python
#-*- coding:utf-8 -*-

import sys
import math

def rectArea(h, w):
    return h * w


for d in sys.stdin:
    area = 0
    d = int(d)
    for i in range(0, 600, d):
        area += rectArea(i*i, d)

    print(area)

Python: try:
   while True:
      d = int(input())
      S = 0
      if d=='':
         break
      for i in range(1, (600-d)//d+1):
         s = (d * i)**2 *d
         S += s
      print(S)
except EOFError:
   pass

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

Python: import sys

for user in sys.stdin:
    d = int(user)
    S = 0
    max = int(600/d)
    for i in range(1, max):
        #  f(id) = (id) ** 2
        S += d * ((i * d) ** 2)
    print(S)

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

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

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

Python: while 1:
  try:
    d = int(input())
  except:
    break
    
  s = 0
  w = d
  while d < 600:
    h = d * d
    s += h * w
    d += w
  print(s)

Python: # coding: utf-8
# Your code here!

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

   except EOFError:
      break

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

Python: # Integral
def sumby(d, S=0):
    for i in range(d, 600, d):
        S += pow(i,2) * d
    return S
d = int(input())
while 1:
    print(sumby(d))
    try: d = int(input())
    except EOFError: break

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

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

def main():
    while True:
        try:
            d=int(input())
            count=d
            ans=0
            while count<600:
                ans+=(count**2)*d
                count+=d

            print(ans)
        except:
            break
            
    
if __name__ == '__main__':
    main()

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

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

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

Python: # coding: utf-8
# Your code here!

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

Python: #!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Copyright  : @Huki_Hara
# Created    : 2015-03-01

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

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

Python: 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)

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

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

Python: import sys
for i in map(int,sys.stdin):
    sum=0
    for j in range(600//i-1):
        sum+=i*((j+1)*i)*((j+1)*i)
    print(sum)

Python: import sys
for i in map(int,sys.stdin):
    sum = 0
    for j in range(600//i-1):
        sum += i*((j+1)*i)*((j+1)*i)
    print(sum)

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

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

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

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

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

        print(sum)

    except:
        break

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

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

Python: import sys
for l in sys.stdin:
    d = int(l)
    result = 0
    for x in range(d, 600-d+1, d):
        result += d*x**2
    print(result)

Python: #縦の長さx^2、横の長さ0~600
#for文で600までi-dで回す、たす

while(1):
    try:
        d = int(input())
    except:
        break
    sum = 0
    for i in range(600//d):
        y = (i*d)**2
        s = y*d
        sum += s
    print(sum)

Python: import sys

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

Python: import sys


if __name__ == '__main__':
    x_limit = 600

    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        d = int(line.strip())  # ????????¢??????????±????

        areas = []  # ????????????????????¢???
        for i in range(0, x_limit, d):  # x=600?????§??????d????????????????????????
            areas.append(d * i**2)  # ???????????¢???????¨????
        print(sum(areas))  # ??¢??????????¨??????¨???

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

Python: while True:
    try:
        n = int(input())
        d = n
        S = 0
        while d < 600:
            S = S + d**2 * n
            d = d + n

        print(S)
    except EOFError:
        break

Python: import sys
N=[]
for l in sys.stdin:
  N.append(int(l))

for i in N:
  j=0
  ans=0
  while j<600:
    ans+=i*(j**2)
    j+=i
  print(ans)

Python: import sys
for i in map(int,sys.stdin):
    sum=0
    for j in range(600//i-1):
        sum+=i*((j+1)*i)*((j+1)*i)
    print(sum)

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

Python: list=[]
try:
    while True:
        list.append(int(input()))
except EOFError:
    pass
for i in range(len(list)):
    
        
    s=0
    for k in range(0,int(600/list[i])):
    
   
        s=s+(list[i]*k)**2
    print(s*list[i])

Python: import sys
for line in sys.stdin.readlines():
    d = int(line)
    f = lambda x: x * x
    print(sum(d * f(w) for w in range(d, 600, d)))