Codeforces Round #500 (Div. 2) [based on EJOI] D. Chemical table(dfs)

NoSuchKey