package main import ( "bufio" "fmt" "os" "sort" "strconv" "strings" ) func nextLine(sc *bufio.Scanner) string { sc.Scan() return sc.Text() } func main() { var N int fmt.Scan(&N) sc := bufio.NewScanner(os.Stdin) a := make([]int, 0) for i := 0; i < N; i++ { ss := strings.Split(nextLine(sc), " ") if len(ss) != 1 { fmt.Println("assert") return } v, _ := strconv.Atoi(ss[0]) a = append(a, v) } b := make([]int, 0) b = append(b, a[0]+a[1]) b = append(b, a[0]+a[2]) b = append(b, a[1]+a[2]) sort.Sort(sort.Reverse(sort.IntSlice(b))) if b[0] == b[1] { fmt.Println(b[2]) } else { fmt.Println(b[1]) } }