#include <stdio.h>

int main(){
    int i, N, sum;
    char c;
    
    scanf("%d", &N);
    
    for(i = 0; i < N; i++){
        sum = 0;
        while((c = getc(stdin)) != '\n'){
            sum += c - '0';
        }
        sum = (sum / 10) + (sum % 10);
        printf("%s\n", (sum % 2) ? "Fabre wins." : "Audrey wins.");
    }
    
    return 0;
}