let () =
  let f x = x*x in
  let rec read () =
    try let d = read_int () in
        let rec integral s = function
            i when i*d >= 600-d  -> s + d * (f (600-d))
          | i -> integral (s + d * (f (i*d))) (i+1)
        in Printf.printf "%d\n" (integral 0 1);read ()
    with End_of_file -> ()
  in read ();;