Magic Trick II

Problem Name:
Magic Trick II
Site:CodeForces
Links:
Tags:
Problem setters: