open System let yuki9008 : unit = let _ = stdin.ReadLine() |> int Console.ReadLine().Split(" ") |> Array.map int64 |> Array.sum |> stdout.WriteLine