Codeforces 1178D. Prime Graph

NoSuchKey