read n; read s; echo $s | xargs -n1 | awk 'BEGIN{a=0}{a+=$1}END{print a}'