Codeforces Round #254 (Div. 2)B. DZY Loves Chemistry

NoSuchKey