Vus the Cossack and Strings

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