Codeforces Round #707 C. Going Home

NoSuchKey