function main(input) {
   input = input.trim();
  const a = input.split(" ").map(Number);
  function compareNumbers(a, b) {
 	 return a - b;
	}
  a.sort(compareNumbers);
 console.log(a[0]+a[1]);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));