'use strict'
function main(input) {
    const tmp = input.split(' ');
    const PQR = tmp.map((t) => parseInt(t, 10));

    const longest = PQR.reduce((max, dist) => Math.max(max, dist));
    PQR.splice(PQR.indexOf(longest), 1);
    console.log(PQR.reduce((sum, dist) => sum + dist));

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