import java.util.* fun main(args: Array) { val cin = Scanner(System.`in`) val N = cin.nextInt() var ans = 0.toLong() for (i in 1..N) { ans += cin.nextLong() } println(ans) }