"use strict";

let squares = [];
let width = [];
let size;
let h = 0;

function Main(input)
{
    // let arr = input.split(' ').map(Number);
    // OR
    let arr = input.split(' ').map(function(a) {
        return parseInt(a, 10);
    });
    let results = [];
    for(let i = 0; i < arr.length; i++)
    {
        for(let j = 0; j < arr.length; j++)
        {
            if(i == j) continue;
            results.push(arr[i]+arr[j]);
        }
    }
    let result = Math.min(...results);
    console.log(result);
    return result;
}

// Main(require("fs").readFileSync("input.txt", "utf8"));
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

