Vus the Cossack and a Contest

Problem Name:
Vus the Cossack and a Contest
Site:CodeForces
Links:
Tags:
Problem setters: