#include <iostream>
#include <algorithm>
#include <string>
#include <sstream>
using namespace std;
#define A cout << "Audrey wins." << endl
#define F cout << "Fabre wins." << endl

string i2s(int num){
  string s;
  stringstream ss;

  ss << num;
  ss >> s;

  return s;
}

int main(){
  int n;

  cin >> n;
  while(n--){
    string str;
    cin >> str;
    
    int cnt = 0;
    while(str.size() >= 2){
      cnt++;
      int pos = str.size()-2;
      int sum = (str[pos]-'0')+(str[pos+1]-'0');
      string tmp = i2s(sum);
      str = str.substr(0,pos) + tmp;
    }
    if(cnt%2) F;
    else A;    
  }
  return 0;
}