For the Emperor!

Problem Name:
For the Emperor!
Site:CodeForces
Links:
Tags: