Modern Djinn

Problem Name:
Modern Djinn
Site:CodeForces
Links:
Tags:
Problem setters: