#include <stdio.h>

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