HUBULLU  Hubulullu
After duelling in quake (a multiplayer game), Airborne and Pagfloyd decide do test themselves out in another game called Hubulullu. The rules of the game are as follows:
N wooden pieces (marked with numbers 1 to N) are placed in a transparent bottle. On his turn the first player takes out some piece (numbered x) and all the pieces numbered by divisors of x that are present in the transparent bottle. The second player picks another number and removes it and its divisors as well. Play continues in an alternating fashion until all pieces have been removed from the bottle. The player who removes the last piece from the bottle wins the game.
Both players play optimally. Given N (the number of wooden pieces in the transparent bottle initially) and the name of the player who starts the game, determine the winner.
Input
The first line of the input contains an integer t, the number of test cases. t test cases follow.
Each test case consists of a single line containing two integers separated by a single space. The first integer is N (1 <= N <= 2000000000), indicating the number of pieces, and the second integer indicates the player who starts  "0" means Airborne starts the game and "1" means Pagfloyd starts the game (quotes for clarity).
Output
For each test case output one line containing either "Airborne wins." or "Pagfloyd wins."
For each N, it's possible to determine a winner if both players play optimally.
Example
Input: 1 1 0 Output: Airborne wins.
hide comments
sushantoberoi3:
20170407 16:15:26
try something like proof by contradiction... 

the_novice96:
20170406 11:54:33
Can be solved using the very basics of game theory. Proof is amazing. But the problem could have been wrapped in a better statement. 

avi_pandey:
20170303 21:09:42
ooo yeeah!!


vladimira:
20170220 15:17:13
Great problem, breaking stereotypic thinking, very good for brain. 

vanvinhbk94:
20170219 09:45:50
AC in one go :)) 

nilabja16180:
20170216 11:11:33
Don't miss the '.' at the end, costed me WA.


masterbios:
20170215 20:31:43
Output should be same as written in description it accepts Pagfloyd wins. if you write pagfloyd wins your code will be wrong 

hits_812:
20170207 11:02:25
don't forget to write "." after wins. Cost me 2 WA 

ayushagg31:
20170131 15:13:50
full on bakwass.. one who played first will win also. Waste of time 

splashishkumar:
20170130 12:01:40
it's a joke for a coder...no logic 
Added by:  Matthew Reeder 
Date:  20061029 
Time limit:  1.787s 
Source limit:  30000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ERL JSRHINO NODEJS PERL6 VB.NET 
Resource:  AlKhawarizm 2006 