#K126. Total Enemies Defeat Challenge
Total Enemies Defeat Challenge
Total Enemies Defeat Challenge
In this challenge, you are given a game with N levels. Each level has a certain number of enemies that the player must defeat. Your task is to calculate the total number of enemies the player needs to defeat to finish the game.
Formally, you are given an integer \(N\) and a list of integers \(a_1, a_2, \ldots, a_N\). Compute the sum \(\sum_{i=1}^{N} a_i\).
Input is provided via standard input (stdin) and output should be produced via standard output (stdout).
inputFormat
The first line contains an integer \(N\) representing the number of levels in the game.
The second line contains \(N\) space-separated integers \(a_1, a_2, \ldots, a_N\), where each integer represents the number of enemies on that level.
outputFormat
Output a single integer representing the total number of enemies the player must defeat.
## sample5
3 1 4 2 0
10
</p>