**Problem Description**

Unless endowed with super-genius mental faculties, most infants will place the rings in a random order on the rod, which results in some rings sticking over the top of the rod. The above diagram on the right shows the result of one such random placement. Your job will be to determine the number of rings which sit above the rod given a random ordering of the rings. You may assume that the rings may be stacked arbitrarily high without falling over.

**Input**

Input will consist of multiple problem instances. Each instance consists of a single line of the form n r

_{1}r

_{2}... r

_{n}. The positive integer n specifies the number of rings (<= 100), and the remaining n integers give the order the rings are put on the rod. A value of n = 0 will terminate input.

**Output**

For each problem instance, you should output one line containing an integer indicating the number of rings sticking over the top of the rod.

**Sample Input**

5 5 4 3 2 1 5 4 5 1 3 2 8 1 2 3 4 5 6 7 8 20 11 10 19 7 12 14 5 2 3 1 8 6 13 17 18 9 4 20 15 16 0

**Sample Output**

0 2 7 11

**Source**

East Central North America 2002, Practice