#include <iostream>
#include <string>
using namespace std;
int main() {
  string nums;
  cin>>nums;
  while ( cin>>nums ) {
    int s=0;
    for ( char c: nums ) {
      s+=c-'0';
    }
    int x=nums.size()+(s-1)/9;
    cout << ( x%2==0?"Fabre":"Audrey" ) << " wins." << endl;
  }
}