open System let No299 () = printfn "%d" (52L * (Int64.Parse (Console.ReadLine())) + 264L) () No299 ()