#C3266. Minimum Total Duration for Lights
Minimum Total Duration for Lights
Minimum Total Duration for Lights
You are given n lights, each with an associated turn-on duration. The total duration required to turn on all lights is simply the sum of these durations. Formally, if the durations are \(d_1, d_2, \dots, d_n\), then the answer is \(\sum_{i=1}^{n} d_i\).
Your task is to calculate this total duration given the list of durations.
inputFormat
The input is read from standard input (stdin) and consists of two lines. The first line contains a single integer n representing the number of lights. The second line contains n space-separated integers, each representing the duration required to turn on one light.
outputFormat
Output the total duration (i.e. the sum of all durations) as a single integer to the standard output (stdout).
## sample5
3 2 5 1 4
15