function Main(input) {
  var PQR = input
    .trim()
    .split(/\s/)
    .map(val => parseInt(val, 10));
  var P = PQR[0];
  var Q = PQR[1];
  var R = PQR[2];
  var sumAry = [];

  for(var i=0;i<PQR.length;i++){
    var copyAry = PQR.concat();
    copyAry.splice(i,1);

    for(var j=0;j<copyAry.length;j++){
      sumAry.push(PQR[i]+copyAry[j]);
    }
  }
  
  console.log(Math.min(...sumAry));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
