n=raw_input() i=0 for a in range(int(n)): a=raw_input() i+=int(a) print i