There are Pepero sticks in a row with weights . A box contains a nonempty contiguous segment whose total weight is at least . Each stick may belong to at most one box, and sticks may be left unused. Maximize the number of boxes, then minimize the total number of used sticks among all ways attaining that maximum. If no box can be made, both values are .
The input is given in the following format:
Print the maximum number of boxes and the minimum total number of used sticks among arrangements attaining that maximum, separated by a space.