Advertising Agency

Problem Name:
Advertising Agency
Site:CodeForces
Links:
Tags:
Problem setters: