func main() var a1: int :: cui@inputInt() var a2: int :: cui@inputInt() var a3: int :: cui@inputInt() var b: int :: cui@inputInt() var ans: int :: [a3 * 3, a1 + a2 + a3 + b].max() do cui@print("\{ans}\n") end func