Descriptions:

DZY Loves Sequences

CodeForces - 447C