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