#include<iostream>
using namespace std;
int main(){
  string ans[]={"Audrey wins.","Fabre wins."};
  int te;
  cin>>te;
  string line;
  getline(cin,line);
  while(te--){
  getline(cin,line);
  bool cnt = 0;
  int t=1;
  int length = line.size();
  for(int i=0;i<line.size();i++)line[i]-='0';
  while(length >1){
    if ( cnt == 0)cnt=1;
    else cnt = 0;
    int a =line[length-1],b=line[length-2];
    if (a+b <10){
      line[length-2]=a+b;
      length--;
    }
    else {
      line[length-1]=(a+b)%10;
      line[length-2]=1;
    }

    if ( length==1)break;


  }

  cout << ans[cnt] << endl;
}
}