Descriptions:

Self-exploration

CodeForces - 1045H