Problem:
Integral Write a program which computes the area of a shape represented by the following three lines:  $y = x^2$ $y = 0$ $x = 600$    It is clear that the area is $72000000$, if you use an integral you learn in high school. On the other hand, we can obtain an approximative area of the shape by adding up areas of many rectangles in the shape as shown in the following figure: $f(x) = x^2$   The approximative area $s$ where the width of the rectangles is $d$ is:  area of rectangle where its width is $d$ and height is $f(d)$ $+$ area of rectangle where its width is $d$ and height is $f(2d)$ $+$ area of rectangle where its width is $d$ and height is $f(3d)$ $+$ ... area of rectangle where its width is $d$ and height is $f(600 - d)$  The more we decrease $d$, the higer-precision value which is close to $72000000$ we could obtain. Your program should read the integer $d$ which is a divisor of $600$, and print the area $s$. Input The input consists of several datasets. Each dataset consists of an integer $d$ in a line. The number of datasets is less than or equal to 20. Output For each dataset, print the area $s$ in a line. Sample Input 20
10 Output for the Sample Input 68440000
70210000

Solution (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)

Solution (Python):
def f(x):
  return x ** 2

while True:
  try:
    d = input()
  except:
    break;
  ans = 0
  for i in range(600 / d):
    ans += f(i * d) * d
  print ans

Solution (Python):
import sys

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

Solution (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

Solution (Python):




import sys

max_num = 600
def f(x):
  return x*x

for s in sys.stdin:
  d = int(s)
  s = 0
  for i in xrange(0,max_num,d):
    s += f(i)*d
  print s

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

        print(sum)

    except:
        break

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

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

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

Solution (Python):






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)

Solution (Python):
import sys
for d in sys.stdin:
    d=int(d)
    n=600/d
    S=0
    for i in xrange(1,n):
        S+=(d*i)*(d*i)*d
    print S

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

Solution (Python):
import sys
for l in sys.stdin:
	d=int(l)
	print sum([i*i*d**3 for i in range(1,600/d)])

Solution (Python):
import sys
for l in sys.stdin:
	d=int(l)
	print sum([i*i*d**3 for i in range(1,600/d)])

Solution (Python):
import sys
for d in map(int,sys.stdin):print sum([i*i*d for i in range(d,600,d)])

Solution (Python):
import sys
for d in map(int,sys.stdin):print sum([i*i*d for i in range(d,600,d)])

Solution (Python):
import sys
for d in map(int,sys.stdin):print sum([i*i*d for i in range(d,600,d)])

Solution (Python):
def get_input():
    while True:
        try:
            yield int(raw_input())
        except EOFError:
            break

num_lis = list(get_input())

for num in num_lis:
    all_count = 600/num
    S = 0
    for i in range(all_count-1):
        count = i+1
        yoko = num
        tate = (count*num)**2
        S += (yoko*tate)
    print(S)

Solution (Python):
while 1:
    try:
        dd = raw_input()
        d = int(dd)
        i = 1
        ans = 0
        while i * d < 600:
            ans += (i * d) * (i * d) * d
            i += 1
        print ans
    except:
        break

Solution (Python):



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)

Solution (Python):


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()

Solution (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)

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

Solution (Python):

import sys
def func(x):
   fun = x*x
   return fun
def cal(d):
   s = 0
   for i in range(1,int(600/d)):
       s = s + d * func(i*d)
   return s
for line in sys.stdin.readlines():
   d = int(line)
   print(cal(d))

Solution (Python):
import sys

def f(x):
    return x*x

lines = sys.stdin.readlines()
for line in lines:
    d = int(line)
    n = 600//d
    integ = 0
    for i in range(1,n):
        integ += d*f(i*d)
    print (integ)

Solution (Python):
import sys
X = 600
for line in sys.stdin:
    s=0
    d = int(line)
    for nowx in xrange(0,X,d):
        s += d*(nowx**2)
    print s

Solution (Python):
def function(a):
	s=0
	d=a
	for i in range(d,600-d+1,d):
		s+=a*(d**2)
		d+=a
		
	return s

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

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

Solution (Python):

x = []
ans = 0
while True:
    try:
        x.append(input())
    except:
        break

for i in xrange(len(x)):
    for j in xrange(x[i],600,x[i]):
        ans += j*j*x[i]
    print ans
    ans = 0

Solution (Python):


import sys

for line in sys.stdin:
    d = int(line)
    s = 0
    x = 0
    while x < (600-d):
        s += d*(d+x)*(d+x)
        x += d
    print s

Solution (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)

Solution (Python):
while True:
    try:
        d = int(input())
    except:
        break

    ans = 0
    x = d
    while x < 600:
        ans += (x ** 2) * d
        x += d
    print(ans)

Solution (Python):
while 1:
    ans=0
    try:
        d=input()
        for i in xrange(600/d-1):
            ans+=d*(d*(i+1))**2
        print(ans)
    except:break

Solution (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)))

Solution (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

Solution (Python):

import sys

def function(x):
    return x*x

def calculate(d, max):
    val = d
    result = 0
    while val < max:
        result += function(val) * d
        val += d
    return result

if __name__ == '__main__':
    for line in sys.stdin:
        print(calculate(int(line), 600))

Solution (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)

Solution (Python):
while True:
  ans = 0

  try:
    d = int(raw_input())

    for i in range(1, 600/d):
      h = d*d*i*i
      ans += d*h

    print ans

  except EOFError:
    break

Solution (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

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

Solution (Python):
while 1:
    try:
        d = input()
        print sum(map(lambda x: d * ((x * d) ** 2), [i for i in xrange(600 / d)]))
    except:
        break

Solution (Python):
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    num=int(n)
    x=0
    are=0
    while x<600:
         are+=(x**2)*num
         x+=num

    print are

Solution (Python):
import sys

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

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

Solution (Python):
import sys

for line in sys.stdin:
    d = int(line.rstrip())
    print sum(d*D*D for D in xrange(d, 600, d))

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

Solution (Python):
import sys
x = 600
sum = 0
for line in sys.stdin:
    d = int(line)
    sum = 0
    for i in range(1,x//d):
        sum += (i*d)**2*d
    print(sum)

Solution (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)

Solution (Python):
def fun(x):
    K = x**2
    return(K)
Sta = 0
End = 600
while True:
    try:
        h = int(input())
        n = int(600/h)
        Sun = 0
        for i in range(1,n):
            Sun += fun(h*i) * h
        print (Sun)     
    except EOFError:
        break

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

Solution (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)

Solution (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):  
            areas.append(d * i**2)  
        print(sum(areas))

Solution (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

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

Solution (Python):
import sys
D=[]
for line in sys.stdin:
    D.append(int(line))
for d in D:
    print(sum([(((i+1)*d)**2)*d for i in range(int(600/d)-1)]))

Solution (Python):


import sys

def func(x):
    return x**2

def rec(x,d):
    return d*func(x)

array = []
for i in sys.stdin:
    array.append(int(i))

for i in range(len(array)):
    d = array[i]
    k = int(600/d)
    result = 0
    for j in range(k):
        result += rec(j*d,d)

    print(result)

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

Solution (Python):
import sys

while True:
  d = sys.stdin.readline()
  if not d: break
  d = int(d)
  x = d
  sum = 0
  while x < 600:
    sum += x * x * d
    x+=d
  print(sum)

Solution (Python):
def integral(d):
    n = 600//d
    s = 0.0
    for i in range(n):
        s += (d*i)**2
    return(s*d)

if __name__ == '__main__':
    while True:
        try:      
            d = int(input())
            print(int(integral(d)))
        except:
            break

Solution (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)

Solution (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)))

Solution (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))

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

Solution (Python):
import sys

for d in map(int, sys.stdin):
    print(sum(d * cd ** 2 for cd in range(d, 600, d)))

Solution (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)

Solution (Python):


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)

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

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

Solution (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)

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

Solution (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)

Solution (Python):
import fileinput
for x in fileinput.input():
    x = int(x)
    t = 600 // x
    s = 0
    for i in range(1, t):
        s += x * (i * x)**2
    print(s)

Solution (Python):
import sys

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

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


def f(x):
    return x**2


def integral(d):
    s = 0
    dd = d
    while dd <= 600 - d:
        s += d * f(dd)
        dd += d
    return s

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

Solution (Python):
import math
while 1:
    try:
        d=int(input())
        time=600//d
        S=0
        for i in range(time):
            x=i*d
            y=x**2
            S+=y*d
        print(S)
    except EOFError:
        break

Solution (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)

Solution (Python):
def f(x):
    return pow(x, 2)

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

Solution (Python):
import sys

def calcIntegral(d:int)->float:
    result = 0
    for x in range(0,600,d):
        result += d*x**2
    return result


if __name__ == '__main__':
    for tmpLine in sys.stdin:
        d = int(tmpLine)
        print(calcIntegral(d))

Solution (Python):
t = 0
while t == 0:
    try:
        d = int(input())
    except:
        break
    else:
        print(sum(d * ((i * d) ** 2) for i in range(int(600/d))))

Solution (Python):



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)

Solution (Python):
from sys import stdin
f = lambda x:x**2

for line in stdin:
    S = 0
    d = int(line)
    for i in range(int(600/d)):
        S += f(d*i)*d
    print(S)

Solution (Python):
import sys

for line in sys.stdin:
  try:
    d = int(line)
    result = 0
    f = d
    while f < 600:
      result += f**2 * d
      f += d
    print(result)
  except:
    break

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

Solution (Python):
def f(x):
    return x ** 2

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

Solution (Python):


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

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

Solution (Python):
def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

def f(x):
    return x*x

N = list(get_input())
for l in range(len(N)):
    d = int(N[l])
    n = int(600 / d)
    S = 0
    for i in range(n-1):
        
        S = S + d*f(d+d*i)
    print(S)

Solution (Python):
import sys
for d in map(int,sys.stdin):print(sum([i*i*d for i in range(d,600,d)]))

Solution (Python):

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)

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

Solution (Python):
f=lambda x:x**2
while True:
    try:d=int(input())
    except:break
    t=[]
    for i in range(600//d):
       t.append(d*f(d*i))
    print(sum(t))

Solution (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

Solution (Python):
import sys
[print(sum([i ** 2 for i in range(int(e), 600, int(e))]) * int(e)) for e in sys.stdin]

Solution (Python):
import sys

a, b = 0, 600


def f(x):
    return x ** 2


if __name__ == '__main__':
    for line in sys.stdin:
        d = int(line)
        sum = 0
        for i in range(a, b, d):
            sum += d * f(i)
        print(sum)

Solution (Python):
import sys
S=lambda s:sum([((i*s)**2)*s for i in range(int(600/s))])
[print(i) for i in [S(int(line)) for line in sys.stdin]]

Solution (Python):



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

Solution (Python):



import sys

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

Solution (Python):
import sys

def calc(N):
    tmp = 0
    cur = 0
    while cur < 600:
        tmp += cur ** 2 * N
        cur += N
    return tmp


for line in sys.stdin.readlines():
    line = line.strip()
    N = int(line)
    print calc(N)

Solution (Python):
import sys
total=0
for i in sys.stdin.readlines():
    total=0
    d=int(i)
    for c in range(0,600,d):
        total+=d*c**2
    print total

Solution (Python):
import sys
for i in sys.stdin:
    d=int(i)
    print sum([x**2*d for x in xrange(0,600,d)])

Solution (Python):
def f(x):
    return x**2

while 1:
    try:
        d0 = raw_input()
        if d0 == '':
            break
        area = []
        d = int(d0)
        for i in range(d, 600, d):
            area.append(d*f(i))
        Sumpoyo = sum(area)
        print Sumpoyo
    except EOFError:
        break

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

Solution (Python):




f = lambda x: x ** 2


def calc_area(d):
    area = 0
    for i in xrange(1, 600 / d):
        area += f(d * i) * d
    return area


def main():
    while 1:
        try:
            d = int(raw_input())
        except EOFError:
            return
        print calc_area(d)

if __name__ == '__main__':
    main()

Solution (Python):
def datasets():
    import sys
    while True:
        s = sys.stdin.readline()
        if len(s) < 2:
            break
        yield int(s)

for n in datasets():
    print sum([x*x*n for x in range(n, 600, n)])

Solution (Python):
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    if d == 600:
        print 0
    else:
        rects = map(lambda x:d*x*x,range(d, 600, d))
        print reduce(lambda x,y:x+y,rects)

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

Solution (Python):
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    if not line.strip():
        continue
    d = int(line)
    print(sum(d * nd ** 2 for nd in xrange(0, 600, d)))

Solution (Python):
import sys

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

Solution (Python):
while True:
	try:
		d = raw_input()
		size = 0
		d = int(d)
		fd = d
		for x in range(1,600/d):
			size += d*(fd**2)
			fd += d
		print size
	except: break

Solution (Python):

import sys


def integral(x, d):
    ds = range(d, x, d)
    ds2 = map((lambda a: a**2 * d), ds)
    ds3 = reduce((lambda b, c: b + c), ds2, 0)
    return ds3





for line in sys.stdin:
    d = int(line)
    area = integral(600, d)
    print area

Solution (Python):
def fx(x):
    return x*x

while True:
    try:
        d = int(raw_input())
        b = 600 / d
        su = 0
        i = 0

        while b > 0:
            b -= 1
            su += fx(b*d)*d

        print su

    except EOFError:
        break

Solution (Python):
while True:
    try:
        n = input()
        s=0
        for i in range(n, 600, n):
            s += i**2 * n
        print s
    except:
        break

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

Solution (Python):


import sys

def main():
	for input in sys.stdin:
		dx = int(input)
		area = integral(dx)
		print(area)

def integral(dx):
	x = 0
	area = 0
	while x < 600:
		area += f(x) * dx
		x += dx

	return area;

def f(x):
	return x * x

main()

Solution (Python):
import sys

for line in sys.stdin:
    result = 0
    d = int(line)
    x = d
    while x < 600:
        result += x**2 * d
        x += d
    print result

Solution (Python):
while 1:
    s = f = 0
    try:
        d = input()
    except:
        break
    while f < 600:
        s += (f ** 2) * d
        f += d
    print s

Solution (Python):


import sys


def f(x):
    return x*x

lineNumber = 0

for line in sys.stdin.readlines():
    lineNumber += 1

    
    if lineNumber == 1:
        cars = []
    
    
    List = map(int, line.strip().split())

    
    d = List[0]
    x = 0
    ans = 0
    while x < 600:
        ans += f(x) * d
        x += d
    print ans

Solution (Python):
while True:
    try:
        wid = int(raw_input())
        r = 600 // wid
        integral = 0
        for i in range(1,r):
            integral += wid*(wid*i)**2
        print integral
    except:
        break

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

Solution (Python):
import sys
for n in map(int,sys.stdin):
  s=sum([i*i for i in range(n,600,n)])*n
  print s

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

Solution (Python):
import sys
for d in map(int, sys.stdin):
  print sum([d*x*x for x in range(d,600,d)])

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

Solution (Python):
L = []
while 1:
    try:
        d = input()
        x = 600
        ret = 0
        for i in range(0, 600, d):
            ret += d * (i ** 2)
        print ret
    except:
        break

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

Solution (Python):
import sys
for d in map(int, sys.stdin):
    print sum(d * (i ** 2) for i in range(0, 600, d))

Solution (Python):
try:
    while True:
        d = int(raw_input())
        sm = 0
        for i in range(d, 600, d):
            sm += (i ** 2) * d
        print sm
except:
    pass

Solution (Python):
import sys

def drange(start, stop, step):
  r = start
  while r <= stop:
    yield r
    r += step

for s in sys.stdin:
  d = int(s)
  sum = 0
  for x in drange(d, 600, d):
    sum += (x-d)**2*d
  print '%d'%sum

Solution (Python):
import sys
for d in map(int,sys.stdin):
  sum = 0
  for x in range(d, 600, d): sum += x**2
  print '%d'%(sum*d)

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

Solution (Python):
while True:
    try:
        d = int(input())
    except:
        break

    area = d * sum(x * x for x in range(0, 600, d))
    print(area)

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

Solution (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

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

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

Solution (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

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

Solution (Python):



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

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

Solution (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

Solution (Python):
while True:
    try:
        d=int(input())
        i=1
        k=0
        while i*d<(600-d+1):
            l=(i*d)**2
            k+=l*d
            i+=1
        print(k)
    except EOFError:
        break

Solution (Python):


def seki(x):
    a=[]
    for i in range(600//x):
        a.append((i*x)**2*x)
    print(sum(a))

while 1:
    try:
        n=int(input())
    except EOFError:
        break
    
    seki(n)

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

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

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

Solution (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)

Solution (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])

Solution (Python):



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)

Solution (Python):
while True:
    try:
        d = int(input())
        x = 600 // d 
        s = 0
        i = 1

        for i in range(x):
            D = (i * d)**2
            s= D * d + s
            i = i + 1
    
        print(s)
    except:
        break

Solution (Python):

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

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

Solution (Python):


while True:
    try:
        d = int(input())
    except:
        break
    
    ans = 0
    x = d
    while x<600:
        ans += (x ** 2) * d
        x += d
    print(ans)

Solution (Python):
while 1:
    try:
        d=int(input())
        a=0
        b=d
        for i in range(1,(600//d)):
            h=b*b
            s=d*h
            b+=d
            a+=s
        print(a)

            
    except EOFError:
        
        break

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

Solution (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)

Solution (Python):

import math
errerN=1

while errerN:
    try:
        volume=0
        a=int(input())
        for x in range(0,600,a):
            volume+=x*x*a
        print(volume)
    except :
        errerN=0

Solution (Python):



import sys

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

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

Solution (Python):
try:
    while True:
        d=int(input())
        a=[]
        for i in range(0,600,d):
            s=d*(i**2)
            a.append(s)
        print(sum(a))
except EOFError:
    pass