Beautiful Sequence

Problem Name:
Beautiful Sequence
Site:CodeForces
Links:
Tags:
Problem setters: