【codeforces 438D】The Child and Sequence

NoSuchKey