SUMLIS - Somma i numeri

no tags 

ITA
Data una lista di numeri interi, restituisci la somma totale di tutti i numeri presenti. Se la lista è vuota restituisci 0.

NOTA: Per leggere la lista in input si può, per esempio, usare il comando lis=eval(input()) che memorizza la lista in input nella variabile lis.
Per scrivere la lista in output si può, per esempio, usare il comando print seguito dal nome della lista risultato.


ENG
Given a list of whole numbers, return the sum total of all the numbers present. If the list is empty, return 0.

NOTE: To read the input list you can, for example, use the command lis = eval (input ()) which stores the input list in the variable lis.
To show the list in output you can, for example, use the print command followed by the name of the result list.


Input
La prima linea contiene una lista di numeri interi. La lista può essere anche vuota.

The first line contains a list of integers. The list can also be empty.


Output
La somma di tutti i numeri presenti nella lista. Se la lista è vuota restitutisci 0.

The sum of all the numbers in the list. If the list is empty, return 0.


Example

Input:
[3,21,5,8]

Output:
37

 



Added by:giorgio.piccardo
Date:2018-06-12
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:NCSHARP JULIA PYTHON PYPY3 PYTHON3