package main import . "fmt" func main() { var n,k int Scan(&n,&k) m:=make([]int,n+1) for _=range m[1:] { var a int Scan(&a) m[a]++ } for _,x:=range m[1:] { if x+m[0]>=k { Println("Yes") return } } Println("No") }