The Child and Sequence

Problem Name:
The Child and Sequence
Site:CodeForces
Links:
Tags:
Problem setters: