n = input() As = list(int(input())) print(sum(As))