// AOJ 2189: Addition Game
// 2017.10.7 bal4u@uu

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

char s[1002];

int main()
{
	int t, k, w, a;
	char *msg[2] = { "Audrey", "Fabre" };

	scanf("%d", &t);
	while (t-- > 0) {
		scanf("%s", s); w = strlen(s);
		for (k = 0; w > 1; k++) {
			a = (s[w-1]-'0') + (s[w-2]-'0');
			if (a >= 10) s[w-2] = a/10 + '0', s[w-1] = a%10 + '0';
			else s[w-2] = a + '0', w--;
		}
		printf("%s wins.\n", msg[k & 1]);
	}
	return 0;
}