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


int main(){
	int a[9],b[9];
	int t;
	cin>>t;
	while(t--){
		int m,d=0;
		string s;
		cin>>s;
		m=s.size()-1;
		for(int i=0;i<s.size();i++){
			d+=s[i]-'0';
			if(10<=d){
				d=d%10+1;
				m++;
			}
		}
		cout<<(m%2?"Fabre":"Audrey")<<" wins."<<endl;
	}
	return 0;
}