#include<iostream>

using namespace std;

#define rep(i, n) for (int i = 0; i < int(n); ++i)

int main() {
  int n;
  cin >> n;
  while (n--) {
    int k = 0;
    string str;
    cin >> str;
    int m = 0;
    rep (i, str.size()) {
      m += str[i] - '0';
      ++k;
      if (m >= 10) {
	  m -= 9;
	  ++k;
      }
    }
    if (k % 2 == 0) {
      cout << "Fabre wins." << endl;
    } else {
      cout << "Audrey wins." << endl;
    }
  }
  return 0;
}