Codeforces Round #630 (Div. 2)-D. Walk on Matrix

NoSuchKey