Sum of integers X66647


Statement
 

pdf   zip

Given a list of nn integers x1,,xnx_1,\ldots,x_n, give their sum as output.

Input

The first line contains a natural number nn. The second line contains a white-separated list of integers x1,,xnx_1,\ldots,x_n.

Output

The output contains a single integer, the sum x1++xnx_1+\cdots+x_n.

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