Perform the Combo

Problem Name:
Perform the Combo
Site:CodeForces
Links:
Tags:
Problem setters: