Descriptions:

Marvolo Gaunt's Ring

CodeForces - 855B