package main import ( "fmt" "os" "bufio" "strconv" ) var sc = bufio.NewScanner(os.Stdin) func main() { sc.Split(bufio.ScanWords) // code goes here n := nextInt() total := int64(0) for i := int64(0); i < n; i += 1 { total += nextInt() } fmt.Println(total) } func nextInt() int64 { sc.Scan() v, e := strconv.ParseInt(sc.Text(), 10, 64) if e != nil { panic(e) } return v } func nextString() string { sc.Scan() return sc.Text() } func nextFloat() float64 { sc.Scan() v, e := strconv.ParseFloat(sc.Text(), 64) if e != nil { panic(e) } return v }