Codeforces Round #436 (Div. 2) E fire DP

NoSuchKey