Numbers arrive one at a time in a stream. After each new number is added, report the current Kth largest value seen so far (using ALL numbers seen so far, including the new one).
Input:
- Line 1:
k n (n = how many numbers will arrive)
- Next
n lines: one integer each
Output: after each number arrives, print the current Kth largest value if at least k numbers have arrived so far; otherwise print NA.