Anna and Bruno like fortune-telling and enjoy playing various styles of fortune-telling together. Today, they will play fortune-telling using cards, which is described below. They will play it for $Q$ times.
They prepare many cards with $0$ or $1$ written on each one, shuffle them, and pile them up on the deck.
Anna draws $N$ ($= 900$) cards from the deck, one at a time. Anna and Bruno know the value of $N$. Every time she draws a card, she decides whether to discard the card or put the card on the table.
The procedure for Anna finishes when she draws and processes $N$ cards. The result of the fortune-telling is the number of cards with $1$ among the $N$ cards.
After Anna finishes her procedure, Bruno sees the sequence of cards on the table. Using the information, he needs to guess the result of the fortune-telling. If he guesses correctly, the fortune-telling is a success.
The fortune-telling is considered more proficient when fewer cards are on the table. Write a program to implement Anna’s and Bruno’s strategies to succeed in all $Q$ fortune tellings. In this task, the fewer cards Anna puts on the table, the higher the score will be.
All the input data satisfy the following conditions.