Codeforces 1093D. Beautiful Graph

NoSuchKey