L = []

while 1:

    try:

        d = eval(input())

        x = 600

        ret = 0

        for i in range(0, 600, d):

            ret += d * (i ** 2)

        print(ret)

    except:

        break
while 1:

    try:

        d = eval(input())

        print(sum(d * (i ** 2) for i in range(0, 600, d)))

    except:

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

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

-L = [] -        x = 600 -        ret = 0 -        for i in range(0, 600, d): -            ret += d * (i**2) -        print(ret) +        print(sum(d * (i**2) for i in range(0, 600, d)))