N,K=map(int,input().split()) A=list(map(int,input().split())) cnt=sum(a>=30 for a in A) print('Yes' if cnt>=K else 'No')