#include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;

int main() {
	int T;cin>>T;
	while (T--) {
		string st;cin>>st;
		int num=0;
		for (auto c : st) {
			num+=c-'0';
		}
		int sum=(num-1)/9+st.size();
		if (sum % 2) {
			cout << "Audrey wins.";
		}else {
			cout<<"Fabre wins.";

		}
		cout<<endl;
	}
	return 0;
}