Codeforces Round #600 (Div. 2) D。 Harmonious Graph

NoSuchKey