function Main(input) {
  const ary = input
                .trim()
                .split(" ")
                .map(n => Number(n))
                .sort((a,b) => b - a)
  ary.shift()
  const ans = ary.reduce((a,b) => a + b)
  console.log(ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))
