#CCBCHHAI0000028. Nhập các số nguyên dương theo phiên (Count Positive Values by Session)

Nhập các số nguyên dương theo phiên (Count Positive Values by Session)

Count Positive Values by Session

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

There are tt consecutive sessions. In each session, read integers until encountering zero; zero ends the session and is not counted. For each session, count the strictly positive values before zero; negative values are ignored. An empty session consists of zero alone.

Input

The first line contains tt (0≤t≤1000\le t\le100). Exactly tt sessions follow; each consists of integers ending with zero. All sessions have a terminator and no values follow the last session.

Output

Print exactly tt lines. Line ii gives the number of positive integers in session ii. If t=0t=0, produce empty output.

Subtasks

  • Subtask 1 (20%): 0≤t≤20\le t\le2; at most 55 integers per session including zero; values in [−10,10][-10,10].
  • Subtask 2 (30%): 0≤t≤100\le t\le10; at most 100100 integers per session including zero; values in [−100,100][-100,100].
  • Subtask 3 (50%): 0≤t≤1000\le t\le100; at most 10011001 integers per session including zero; values in [−1000,1000][-1000,1000].

Examples

Example 1

Input

3
1 -1 2 0
0
-2 3 0

Output

2
0
1

Explanation

Session 1 has two positives (1 and 2). Session 2 is empty. Session 3 has one positive (3).

Example 2

Input

0

Output


Explanation

There are no sessions; the program prints nothing.