Simple game?

Petr and Tourist are playing an interesting game called Simple. Initially there are nn tokens, which are taken away by alternating turns with the following rules:

  1. Petr plays first, and he cannot take away all the tokens in the first turn.

  2. In each of the remaining turns the player cannot take away more than 2x2x tokens, where xx is the number of tokens removed in the last turn.

  3. The player that manages to take away the last token wins.

Since the players of this game are bad programmers, they need your help. Given nn, who will win the game assuming perfect play?

Input

Input consists of several cases, each with an nn between 2 and 10610^6.

Output

For every nn, print the name of the winner.

Problem information

Author: Salvador Roura

Generation: 2026-01-25T12:12:34.253Z

© Jutge.org, 2006–2026.
https://jutge.org