package main import "fmt" func main() { var n, a, i int32 var sum int32 = 0 fmt.Scan(&n) for i = 0; i < n; i++ { fmt.Scan(&a) sum += a } fmt.Println(sum) }