#include<iostream>
using namespace std;

int main(){
  int n;
  cin>>n;
  while(n--){
    int cnt=0;
    string m;
    cin>>m;
    for(;m.size()!=1;cnt++){
      //cout<<m.size()<<endl;
      int len=m.size();
      int temp=(m[len-1]-'0')+(m[len-2]-'0');
      if(temp/10) m[len-2]= temp/10+'0',m[len-1]=temp%10+'0';
      else m[len-2] = (temp+'0'),m = m.substr(0,len-1);
    }
    if(cnt%2==0) cout<<"Audrey wins."<<endl;
    else cout<<"Fabre wins."<<endl;

  }
  return 0;
}