const first = parseInt(process.argv[2]);
const second = parseInt(process.argv[3]);
const third = parseInt(process.argv[4]);

const a = first + second;
const b = first + third;
const c = third + second;

const getResult = (a,b,c) => {
    if (a < b && a < c) {
        return a;
    } else if (b < a && b < c){
        return b;
    } else {
        return c;
    }
}

console.log(getResult(a,b,c));