import scala.annotation.tailrec
object Main extends App {
  import scala.io.StdIn._
  for (_ ← 0 until readInt()) {
    println(winner(readLine.trim.toList.map(_.asDigit), 0))
  }
  @tailrec def winner(digits: List[Int], count: Int): String = {
    digits match {
      case _::Nil ⇒ if (count % 2 == 0) "Audrey wins." else "Fabre wins."
      case a::b::t if a + b >= 10 ⇒ winner(1::(a + b) % 10 :: t, count + 1)
      case a::b::t ⇒ winner(a + b ::t, count + 1)
      case Nil ⇒ ???
    }
  }
}
