"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const distances = arg[0].split(" ").map(n=>parseInt(n)).sort((a,b)=>a-b);
    
    console.log(distances[0] + distances[1]);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));