open System [] let main args = let N = Int64.Parse(Console.ReadLine()) printfn "%d" (52L * N + 264L) 0