【推导】Codeforces Round #478 (Div. 2) D. Ghosts

NoSuchKey