Kana and Dragon Quest game

Problem Name:
Kana and Dragon Quest game
Site:CodeForces
Links:
Tags: