A pile of stones

Problem Name:
A pile of stones
Site:CodeForces
Links:
Tags:
Problem setters: