'use strict';

function main(stdin) {
  const input = stdin.split(' ').map(v => parseInt(v, 10));

  const sorted = input.sort((a, b) => a - b);
  
  console.log(sorted[0] + sorted[1]);
}

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