Anya and the Mysterious String

Problem Name:
Anya and the Mysterious String
Site:CodeForces
Links:
Tags:
Problem setters: