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