n,k=map(int,input().split()) A=list(map(int,input().split())) A.sort(reverse=True) if A[k-1]>=30: print("Yes") else: print("No")