N = int(input()) output = 0 while input() != '': n = input() output += n print(output)