Shuffle one more time

Problem Name:
Shuffle one more time
Site:CodeForces
Links:
Tags: