Polycarp and the Language of Gods

Problem Name:
Polycarp and the Language of Gods
Site:CodeForces
Links:
Tags:
Problem setters: