// No.2175 Exciting Combo package main import "fmt" func main() { var a1, a2, a3, b int fmt.Scan(&a1, &a2, &a3, &b) fmt.Println(max(a3*3, a1+a2+a3+b)) }