Unfair Game

No attempts yetTime limit2sMemory limit128 MB

Problem

Hanako and Jiro play a stone game with NN heaps of stones. They take turns, and Hanako moves first.

  • On her turn, Hanako must take between 11 and AA stones from one heap.
  • On his turn, Jiro must take between 11 and BB stones from one heap.

Neither player may take more stones than the chosen heap holds, and every turn must remove at least one stone. The player who takes the last stone wins.

Both players play optimally. Determine who wins.

Input

The first line contains three integers NN, AA, and BB, separated by spaces. NN is the number of heaps. AA and BB are the largest numbers of stones that Hanako and Jiro can take in one turn.

Each of the next NN lines contains one integer SiS_i, the number of stones in the ii-th heap when the game starts.

  • 1N1051 \le N \le 10^5
  • 1A,B1091 \le A, B \le 10^9
  • 1Si1091 \le S_i \le 10^9

Output

Print "Hanako" on one line if Hanako wins, or "Jiro" if Jiro wins.