package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { var n, sum int64 fmt.Scan(&n) r := bufio.NewReader(os.Stdin) b, _, _ := r.ReadLine() ss := strings.Split(string(b), " ") for _, v := range ss { x, _ := strconv.ParseInt(v, 10, 64) sum += x } fmt.Println(sum) }