function main(input) {
  var _input = `1 2 3 1`
  var input = _input.split(' ');
  for (var i=0;i<input.length;i++){
    input[i] = parseInt(input[i]);
  }
  
  var manipulate = (input) => {
    var tmp1 = input[1] + input[2];
    var tmp2 = input[0] + input[2];
    var tmp3 = input[0] + input[1];
    input[0] = temp1;
    input[1] = temp2;
    input[2] = temp3;
  	}
    return input;
  }
  
  console.log(manipulate(input));
    
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
