A Prosperous Lot

Problem Name:
A Prosperous Lot
Site:CodeForces
Links:
Tags:
Problem setters: