https://www.acmicpc.net/problem/10797
import java.util.*
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt()
var count=0
for(i in 0 until 5){
var a=s.nextInt()
if(n==a) count++
}
print(count)
}