Codeforces Round #533 (Div. 2) D. Kilani and the Game(BFS)

NoSuchKey