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
        var s = Int.MaxValue
        var e = Int.MinValue
        var f = false
        x.foreach(y => {
            if (y <= e%15 && (y+7) >= s) f = true
            else {
                if (((y < s) && y > (e%15)) || y > e) s = y
                if ((y+7)%15 > e) e = y+7
            }
        })
        if (f || (e%15)-s == 7) println("Draw")
        else println(hands(s))
    }
}