LearnPy Hub
← Arena
EasyRating 800

Is the Class Cancelled?

Arrival times are given (≤ 0 means on time). The class is cancelled if fewer than k students are on time. Print YES if cancelled, otherwise NO.

Input

n and k, then n integers.

Output

YES or NO.

Sample 1

Input
4 3
-1 -3 4 2
Output
YES

Sample 2

Input
4 2
0 -1 2 1
Output
NO
solution.py
Output appears here
Is the Class Cancelled? · Python Arena problem · LearnPy Hub