Vasya and Good Sequences

Problem Name:
Vasya and Good Sequences
Site:CodeForces
Links:
Tags:
Problem setters: