#C2261. Kevin's Total Lap Time Calculation

    ID: 45558 Type: Default 1000ms 256MiB

Kevin's Total Lap Time Calculation

Kevin's Total Lap Time Calculation

Kevin needs to complete N laps, and for each lap he has a recorded time in seconds provided as a list T. Your task is to compute the total time required to finish all laps.

The total time is calculated using the formula:

$$ total = \sum_{i=1}^{N} T_i $$

where \(T_i\) is the time taken for the \(i^{th}\) lap.

inputFormat

The input is read from stdin and consists of two lines:

  • The first line contains an integer N denoting the number of laps.
  • The second line contains N space-separated integers where the \(i^{th}\) integer represents the time in seconds for the \(i^{th}\) lap.

outputFormat

The output, printed to stdout, is a single integer representing the total time (in seconds) required to complete all laps.

## sample
5
300 450 400 550 600
2300