Codeforces Round #616 C Mind Control

NoSuchKey