Editorial for Digit Picking


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.

Submitting an official solution before solving the problem yourself is a bannable offence.
length = int(input())
number = input()

start = 0
end = length - 1
turn = False
finish = False
while (start < end) and not finish:
    if number[start] != number[end]:
        if turn:
            print("Deniz")
            finish = True
        else:
            print("Cansu")
            finish = True
    start += 1
    end -= 1
    turn = not turn

if not finish:
    print("Draw")