import sys

for n in map(int,sys.stdin):

  s=sum([i*i for i in range(n,600,n)])*n

  print(s)
import sys

for n in map(int,sys.stdin):

  s=0

  for i in range(n,600,n): s+=i*i

  print(s*n)
import sys

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

import sys

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

-    s = sum([i * i for i in range(n, 600, n)]) * n -    print(s) +    s = 0 +    for i in range(n, 600, n): +        s += i * i +    print(s * n)