Neal Stephenson's novel Cryptonomicon describes a cryptographic algorithm built on a deck of playing cards, and it stresses that proper shuffling is crucial to the cipher's security. To show why randomness matters, we study a card game that uses no shuffling at all and is therefore completely predictable.
The game is a stripped-down variant of poker: every card is visible to everyone, and the players have no influence on the course of play whatsoever. Rather boring, isn't it?
A session consists of one or more games and is played by $N$ players. The players sit in a row, numbered $1, 2, \ldots, N$ from left to right. The deck holds exactly $5N$ cards numbered $1, 2, \ldots, 5N$.
Each game begins by dealing the cards in three rounds:
Each player therefore holds five cards. The player who ends up holding all five of the smallest-numbered cards ($1, 2, 3, 4, 5$, in any order) wins the whole session.
If nobody wins, the cards are collected and a new game starts. They are gathered player by player from right to left, and one player's cards are always picked up one at a time in the reverse of the order in which they were dealt. Each collected card is placed on top of the deck, then the next on top of it, and so on. As a result, the top of the rebuilt deck holds player 1's cards, and its six top-most cards are the ones that were at positions $1, 2, 2N+1, 2N+2, 4N+1, 3$ in the previous deck.
For example, with two players the initial deck holds ten cards $A, B, C, D, E, F, G, H, I, J$. In the first round player 1 gets $A$ and $B$, and player 2 gets $C$ and $D$. Then $E$ and $F$ go to player 1 and $G$ and $H$ to player 2; finally $I$ goes to player 1 and $J$ to player 2. When collecting, player 2's cards come first in the order $J, H, G, D, C$, followed by player 1's cards $I, F, E, B, A$. Because each card is stacked on top of the previous one, after one game the deck reads $A, B, E, F, I, C, D, G, H, J$ from top to bottom.
Write a program that determines the outcome of a session, so that you can spoil the game for its players.
The input contains several sessions. Each session is given on two lines. The first line holds the number $N$ with $1 \le N \le 1000$. The second line lists the card numbers $1, 2, \ldots, 5N$ from the top of the deck to the bottom, separated by single spaces; every number appears exactly once. The last session is followed by a line containing a single zero.
For each session print exactly one line. If no player ever wins, print Neverending game.; otherwise print Player P wins game number G., where $P$ is the winning player and $G$ is the number of the first game that is won (games are numbered from 1). Note that $G$ may exceed $2^{32}$, but it is always smaller than $2^{63}$.