#Lutece0219. Chiara’s “Beiju”

Chiara’s “Beiju”

Migrated from Lutece 219 Chiara’s “Beiju”

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Chiara has NN cups, numbered from 11 to NN. Cups are laid on a table, each upward or downward. Chiara enjoys turning cups. Every time she will select MM cups and play her silly game. If a cup is upward, it will be downward after her turning, and vice versa. One day, Chiara's NN friends are coming to see her. She'd like to use the NN cups for coffee serving (Chiara is addicted to coffee desperately, that's...OK). However, the cups are not all upward. She is wondering if it is possible to make them all upward after several turnings. Since time is limited, you have to give her the minimum number of steps.

Note: Chiara has to turn MM cups each time.

Input

There are multiple cases. The first line is an integer T(1T20)T(1 \leq T \leq 20), then following TT cases.

For each case:

The first line has two integers N(1N10000)N(1 \leq N \leq 10000)M(1M10,MN)M(1 \leq M \leq 10, M \leq N). NN is the total number of cups and MM is the number of cups Chiara has to turn each time.

The second line has NN numbers, either 00 or 11(00 for upward and 11 for downward), separated by spaces.

Output

If Chiara can achieve her goal, please output the minimum number of turnings, otherwise print Poor Girl.

Samples

2
6
3
0 0 0 1 1 1
2
2
0 1
1
Poor Girl

Resources

第四届北京邮电大学程序设计竞赛网络预赛