object Main extends App {
    val hands = List("Rock", "Fire", "Scissors", "Snake", "Human", "Tree", "Wolf", "Sponge", "Paper", "Air", "Water", "Dragon", "Devil", "Lightning", "Gun") 
    val h = hands.zipWithIndex.toMap
    val in = io.Source.stdin.getLines
    for (n <- in if n != "0") {
        val x = in.take(n.toInt).map(h(_)).toList
        val y = x.foldLeft((0 to hands.size-1).toList)((a, b) =>
            if   (b+7 < 15) a.diff((b+1 to b+7))
            else a.diff((0 to (b+7)%15)) intersect a.diff(((b+1) to 14))
        )
        if (y.length == 1) println(hands(y.head))
        else println("Draw")
    }
}