'use strict'

function main(s) {

  s = s.split('\n')[0].split(' ').map(n => Number(n));
  s.sort((a, b) => a - b);

  const ans = s[0] + s[1];

  console.log(ans);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
