const input = require('fs').readFileSync('/dev/stdin', 'UTF-8')

function main (input) {
  const list = input.split(' ').map(v => v * 1);
  const min1 = Math.min.apply(null, list);
  const list2 = list.filter(v => v !== min1);
  const min2 = list2.length === 0 ? min1 : Math.min.apply(null, list2);
  
  console.log(min1 + min2)
}

main(input);