CodeForces - 982C Cut 'em all!

NoSuchKey