object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val bells = List.fill(3)(sc.nextInt)

    val minBells = bells.filter( _ != bells.max )
    if (minBells.length <= 1) {
      println(bells(0)* 2)
    } else {
      println(minBells.sum)
    }
  }
}

