Descriptions:

Earth Wind and Fire

CodeForces - 1148E