#include<stdio.h>
#include<iostream>
#include<string>
using namespace std;

int main(){
	int K;
	
		cin>>K;

		for(int I=0;I<K;I++)
		{
			string str;
			cin>>str;
			int n[1002]={};
			int s=0,c=0;
			for(int i=0;i<str.size();i++)
			{if(s%10+str[i]-'0'>9)c++;s+=str[i]-'0';s=s%10+s/10;}
			int rot=c+str.size()-1;
			
			if(rot%2==1)cout<<"Fabre wins."<<endl;
			else cout<<"Audrey wins."<<endl;
		}
		return 0;
}
			