Олимпиадный тренинг

Задача 24630. Processing of entered numbers - 1


Задача

Темы: Цикл for
The mass of each of N objects is known. Determine the total mass of the entire set of items.

Input:
The first line contains a natural number N - the number of items
The next N lines contain numbers (one number per line) - the mass of each object

Imprint
Display one number on the screen - the total mass of a set of items

Example:
Input
3
3
5
4

Imprint
12