N, K = map(int, input().split()) print("Yes" if all(a >= 30 for a in sorted(list(map(int, input().split())), reverse = True)[:K]) else "No")