smoothie-web Problems Contests Ranking About

BSSPC '20 J1

James Soup the Chad plays League of Legends constantly. Through practice he can make many kills in one game, often consecutively. For each time period he makes kills, it either corresponds to a single kill , double kill, triple kill, quadruple kill , or when the entirety of the other team is executed, penta kill.

Unfortunately, the in game counter that tells James how many kills he is getting is broken, can you make a counter for him?

Input

The first line of input is a integer $n$, indicating how many games James played continuously, $n$ is less than or equal to $1000$

the next $n$ lines of input are lines of space separated x, with each x indicating a kill.

Output

output n lines, with each line indicating the kills he made in one game. If there is more than five, assume there is as many penta kills as possible.

Sample Input

3
x X x
x x X x X
x x X x X x X x x


Sample Output

triple kill
penta kill
penta kill quadruple kill