#K58007. Maximum Gadget Production in One Minute

    ID: 30546 Type: Default 1000ms 256MiB

Maximum Gadget Production in One Minute

Maximum Gadget Production in One Minute

You are given N machines, each with a production speed given in gadgets per minute. Your task is to calculate the maximum number of gadgets that can be produced in one minute when all machines work simultaneously. The answer is simply the sum of the production speeds of all machines.

Note: The input begins with the integer N indicating the number of machines, followed by N space‐separated integers representing the production speeds of each machine.

Mathematically, if the speeds are \(s_1, s_2, \ldots, s_N\), then the maximum gadgets produced in one minute is:

[ \text{Answer} = \sum_{i=1}^{N} s_i ]

inputFormat

The first line contains an integer N (1 ≤ N ≤ 105) representing the number of machines. The second line contains N space-separated integers, each representing the production speed of a machine (each value is between 1 and 109).

outputFormat

Output a single integer, the maximum number of gadgets produced in one minute.

## sample
5
3 1 5 7 4
20