let () = let n = read_line () |> int_of_string in print_endline @@ string_of_int @@ 316 + 52 * (n - 1)