package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { s1 := bufio.NewScanner(os.Stdin) s1.Scan() n, _ := strconv.Atoi(s1.Text()) s2 := bufio.NewScanner(os.Stdin) s2.Scan() v := strings.Fields(s2.Text()) sum := 0 for i := 0; i < n; i++ { l, _ := strconv.Atoi(v[i]) sum += l } fmt.Println(sum) }