#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
 
using namespace std;

/* constant */

const int MAX_N = 1000;

/* typedef */

typedef map<string,bool> msb;

/* global variables */

int n;
int ds[MAX_N];

/* subroutines */

/* main */

int main() {
  int tn;
  cin >> tn;

  while (tn--) {
    string num;
    cin >> num;

    n = num.length();

    for (int i = 0; i < n; i++) ds[i] = num[i] - '0';

    int count = 0;
    while (n > 1) {
      count++;
      int sum = ds[n - 2] + ds[n - 1];
      if (sum < 10) {
	n--;
	ds[n - 1] = sum;
      }
      else {
	ds[n - 2] = 1;
	ds[n - 1] = sum % 10;
      }
    }
    //cout << count << endl;

    cout << ((count & 1) ? "Fabre" : "Audrey") << " wins." << endl;
  }

  return 0;
}