Polycarp Writes a String from Memory

Problem Name:
Polycarp Writes a String from Memory
Site:CodeForces
Links:
Tags:
Problem setters: