There are $T$ test cases in this problem.
The first line has one integer $T$.
For every test case:
The first line has one integer $n$ which denotes the number of times Kanade reported on a certain day.
The second line has $n$ integers $a_1,a_2,a_3,\cdots,a_n$, $a_i$ denotes the type of the $i$-th report. $a_i=0$ denotes a leaving school report and $a_i=1$ denotes an entering school report.
$1\leq T\leq 100$
$3\leq n\leq 50$
$0\leq a_i\leq 1$