#include<iostream>
#include<sstream>


using namespace std;
string tmp;
int num,ans[2];

string i2s(int num){
  string str;
  stringstream s;
  s<<num;
  s>>str;
  return str;

}
  
void dfs(string str,int cnt){
  //cout<<str<<' '<<cnt;
  //if(str.size()==1)cout<<"-----"<<endl;
  //else cout<<endl;
  if(str.size()==1){
    ans[cnt%2]=1;
  }


  if(str.size()>1){
    for(int i=0;i<1;i++){
      tmp="";
      tmp+=str.substr(0,i);
      num=(str[i]-'0')+(str[i+1]-'0');
      tmp+=i2s(num);
      tmp+=str.substr(i+2,str.size()-(i+2));
      dfs(tmp,cnt+1);
    }
  }
}
int main(){
  int n;
  cin>>n;
  while(n--){
    ans[0]=ans[1]=0;
    string str;
    cin>>str;
    dfs(str,0);
    //cout<<ans[0]<<' '<<ans[1]<<endl;
    if(ans[0]==0){
      cout<<"Fabre wins."<<endl;
    }else{
      cout<<"Audrey wins."<<endl;
    }
  }
  return 0;
}