package main import ( "bufio" "fmt" "math/big" "os" "strings" ) func main() { var n int64 var sum *big.Int sum = new(big.Int) fmt.Scan(&n) r := bufio.NewReader(os.Stdin) b, _, _ := r.ReadLine() ss := strings.Split(string(b), " ") for _, v := range ss { x, _ := new(big.Int).SetString(v, 10) y := sum.Add(sum, x) sum = y } fmt.Println(sum) }