Enchanted Artifact

Problem Name:
Enchanted Artifact
Site:CodeForces
Links:
Tags:
Problem setters: