n, *a = open(0);print(sum(map(int, a)))