object Main {
    val hands = List("Rock", "Fire", "Scissors", "Snake", "Human", "Tree", "Wolf", "Sponge", "Paper", "Air", "Water", "Dragon", "Devil", "Lightning", "Gun") 
    def main(args: Array[String]) = {
        val h = (hands ::: hands).sliding(8).take(15).map(l => (l.head, l.tail)).toMap
        val in = io.Source.stdin.getLines
        for (n <- in if n != "0") {
            val x = in.take(n.toInt).toList
            x.foldLeft(x)((a, b) => a diff h(b)) match {
                case List(hh) => println(hh)
                case _ => println("Draw")
            }
        }
    }
}