codeforces 546 E Soldier and Traveling

NoSuchKey