n = int(input()) val = input() val_split = val.split() a=0 for i in range(1, n): a = a + int(val_split[i]) print(a)