#include<deque>
#include<list>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
#include<sstream>
#include<cmath>
#include<cstdio>
#include<cstring>
using namespace std;
int main(){
  int h,i;
  int n;
  cin>>n;
  for(h=0;h<n;++h){
    char s[1001];
    cin>>s;
    int sg=0,ct=0;
    for(i=0;s[i];++i){
      sg+=s[i]-'0';
      ++ct;
      if(sg>9){
	sg=sg%10+1;
	++ct;
      }
    }
    if(ct%2)
      cout<<"Audrey wins."<<endl;
    else
      cout<<"Fabre wins."<<endl;
  }
  return 0;
}