function Main(input){
  A = input.split(' ').map(n => parseInt(n)).sort((a, b) => a - b);
  min = 100;
  for (let i = 0; i < A.length; i++) {
    for (let j = i + 1; j < A.length; j++) {
      console.log("i : " + i + "/ j : " + j);
      sum = A[i] + A[j];
      if (sum < min) {
        min = sum;
      }
    }
  }
  console.log(min)
}

Main(require("fs").readFileSync("/dev/stdin","utf-8"));
