fun main(args: Array<String>) {
    val values = readLine()!!.split(" ").map(String::toInt)

    var result = 10000000;
    for ((i, v1) in values.withIndex()) {
        for ((j, v2) in values.withIndex()) {
            if (i == j) continue

            if (result > (v1 + v2)) {
                result = v1 + v2
            }
        }
    }

    println(result)
}