first = int(input()) souwa = 0 for i in first: number = int(input()) souwa += number print(souwa)