Beauty of the mountains

Problem Name:
Beauty of the mountains
Site:CodeForces
Links:
Tags:
Problem setters: