you are given an array A of n positive integer and r moves.
on each move: you can choose any subarray of A (which contains only positive elements) and decrease all elements in that subarray by one.
your task is to maximize the number of 0 values in your array.
print that number after r moves.
input: