package answers

object abc086_a {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val list = List.fill(3)(sc.next)
    val count = list.count(s => s == "1")
    print(count)
  }
}