#include <stdio.h>
#include <string.h>

int main(void){
	int i;
	int n;
	int sum,len,count;
	char s[1004];

	scanf("%d",&n);
	while(n--){
		scanf("%s",s);

		len = strlen(s);
		sum = 0;
		for(i=0;i<len;i++)
			sum += s[i] - '0';

		count = (len - 1) + (sum - 1) / 9;
		printf("%s wins.\n",count % 2 == 0 ? "Audrey" : "Fabre");
	}

	return 0;
}