CodeForces 982 C Cut 'em all!

NoSuchKey