Email from Polycarp

Problem Name:
Email from Polycarp
Site:CodeForces
Links:
Tags:
Problem setters: