object Main {
  def main(args: Array[String]) = {
    import scala.io.StdIn.readLine

    val sc = new java.util.Scanner(System.in)
    val times = readLine.split(" ").map(_.toInt).toList
    sc.close()
    println(times.sorted.take(2).sum)
  }
}