Sum of integers X66647


Statement
 

pdf   zip

thehtml

Given a list of n integers x1,…,xn, give their sum as output.

Input

The first line contains a natural number n. The second line contains a white-separated list of integers x1,…,xn.

Output

The output contains a single integer, the sum x1+⋯+xn.

Public test cases
  • Input

    5
    1 2 3 4 5

    Output

    15
    
  • Information
    Author
    Language
    English
    Translator
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++
    User solutions
    Python