Codeforces Round #597 (Div. 2) D - Shichikuji and Power Grid

NoSuchKey