"use strict";
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

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

function Main(input)
{
    let arr = input.split(' ');
    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;
}
