N, K = map(int, input().split()) A = sorted(list(map(int, input().split()))) if A[N-K] >= 30: print('Yes') else: print('No')