Codeforces Round #500 (Div. 2) D - Chemical table

NoSuchKey