X = input() n = [input() for i in range(X)] c = 0 nx = 0 while c < X: nx += n[c] c+= 1 print nx