#include<iostream>
#include<string>
using namespace std;
int solve(string S) {
	if (S.size() == 1)return 0;
	string U = S;
	int F = (int)(U[0] - '0') + (int)(U[1] - '0');
	U = to_string(F) + U.substr(2, U.size() - 2);
	return solve(U) + 1;
}
string T;
int main() {
	int n; cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> T; int P = solve(T);
		if (P % 2 == 0)cout << "Audrey wins." << endl;
		if (P % 2 == 1)cout << "Fabre wins." << endl;
	}
	return 0;
}