n=raw_input() m=raw_input() L=map(int, m.split()) print sum(L)