Consider the function p(x), where x is an array of m integers, which returns an array y consisting of m+1 integers such that yi is equal to the sum of first i elements of array x (0≤i≤m).
You have an infinite sequence of arrays A0,A1,A2..., where A0 is given in the input, and for each i≥1 Ai=p(Ai-1). Also you have a positive integer k. You have to find minimum possible i such that Ai contains a number which is larger or equal than k.
Output
Print the minimum
i such that
Ai contains a number which is larger or equal than
k.