let () = let n = read_int () in Printf.printf "%d\n" @@ 316 + 52 * (n - 1)