#include<iostream>
#include<string>
using namespace std;

inline void change(string &s){
  int a = s[0]-'0', b = s[1]-'0';
  string res;
  if(a+b>9){
    res += '0'+(a+b)/10;
    res += '0'+(a+b)%10;
  }else{
    res += '0'+a+b;
  }

  s = res + s.substr(2);
}

int main(){
  int n;
  string s;
  cin >> n;
  while(n--){
    cin >> s;
    int cnt = 0;
    while(s.size()>1)change(s), cnt++;
    cout << ((cnt&1)?"Fabre":"Audrey") << " wins.\n";
  }
}