t=int(raw_input())
for i in range(t):
	a,b=(raw_input().split())
	if b=="0":
		print "Airborne wins."
	else:
		print "Pagfloyd wins."
602cdbc1c5e4c1f1054967cb1ff1ba57954b14ca
t=int(raw_input())
for i in range(t):
	a,b=(raw_input().split())
	if b=="0":
		print "Airborne wins."
	else:
		print "Pagfloyd wins."