Turkey Hunt The local turkey farm wants to move the remaining turkeys fast, because thanksgiving is almost here. So it is running a promotion that is quite novel. It has a list of turkeys it has with their weights. If you can quickly guess the largest subsequence of turkeys of no-decreasing weight, and if you get the correct answer you get a coupon for a free turkey. In this case subsequence means any sequence you get by deleting some values from the original sequence. Your job is to write a program to help you solve the problem given. Input The input file consists of a number of games. Each game description starts with a line containing an integer N (no more than 1000). The next line has N integers (each between 10 and 60) separated by blanks. The last game has N=0 and this should not be processed. Output Each game generates one line of output. The line has the size of the longest nondecreasing subsequence of weights. Sample Input 7 25 24 25 24 25 24 25 4 24 23 22 21 0 Sample Output 4 1