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

    val sum = bells.filter( _ != bells.max ).sum
    println(sum)
  }
}

