Musical Puzzle

Problem Name:
Musical Puzzle
Site:CodeForces
Links:
Tags:
Problem setters: