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

int main(void){
	int n;
	int flg;
	int len,left,right;
	char s[1004];

	scanf("%d",&n);

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

		for(flg = 1; strlen(s) != 1; flg = !flg){
			len = strlen(s);
			right = s[len-1] - '0';
			left = s[len-2] - '0';

			s[len-2] = 0;

			sprintf(s, "%s%d", s, left+right);
		}

		printf("%s wins.\n", flg ? "Audrey" : "Fabre");
	}

	return 0;
}