module B = Big_int let () = let n = read_int () in Array.init n (fun _ -> read_line ()) |> Array.map B.big_int_of_string |> Array.fold_left B.add_big_int B.zero_big_int |> B.string_of_big_int |> print_endline