N,K = map(int, input().split()) A = sorted(list(map(int, input().split())),reverse=True) if A[K-1] < 30: print("No") else: print("Yes")