#K75447. Minimum Total Score

    ID: 34421 Type: Default 1000ms 256MiB

Minimum Total Score

Minimum Total Score

You are given an integer n and a list of n integers. Each integer represents the minimum required score to pass a corresponding level in a game. The task is to compute the minimum total score required to pass all levels, which is the sum of all given scores.

The formula for the total score is:

$$ S = \sum_{i=1}^{n} a_i $$

where \( a_i \) is the score required for the \( i^{th} \) level.

inputFormat

The input is read from standard input. The first line contains a single integer n (the number of levels). The second line contains n space-separated integers representing the minimum required score for each level.

outputFormat

Output to standard output a single integer, which is the total minimum score required to pass all levels.

## sample
5
5 10 3 20 15
53