def angryProfessor(k, a):
    # Write your code here
    attend = sum([1 if i <= 0 else 0 for i in a])
    
    return 'NO' if attend >= k else 'YES'