import scala.io.StdIn

object Main {

  def main(args: Array[String]) {
    val pqr = StdIn.readLine().split(' ').toList.map(_.toInt)
    val sum = pqr.foldLeft(0)((acc, x) => acc + x)
    val max = pqr.foldLeft(0)((max, x) => if (max < x) x else max)
    println(sum - max)
  }

}
