Buy a Shovel

Problem Name:
Buy a Shovel
Site:CodeForces
Links:
Tags:
Problem setters: