#include <stdio.h>

int main(void)
{
    char str[1024], *p;
    int n, sim;
    
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%s", str);
        
        if (str[0] == '0'){
            break;
        }
        
        sim = 0;
        p = str;
        while (strlen(p) != 1){
            p[0] = p[0] + p[1] - '0';
            p[1] = (p[0] - '0') % 10 + '0';
            p[0] = (p[0] - '0') / 10 + '0';
            
            while (*p == '0'){
                p++;
            }
            
            sim++;
        }
        
        if (sim % 2){
            printf("Fabre wins.\n");
        }
        else {
            printf("Audrey wins.\n");
        }
    }
    return (0);
}