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(_))
        val h = x.min
        val t = x.max + 7
        if ((t-h) == 7 || h <= (t%15)) {
            println("Draw")
        } else {
            if ((t-h) < 15))
                println(hands(h))
            else
                println(hands(t-7))
        }
    }
}