Quality vs Quantity

Problem Name:
Quality vs Quantity
Site:CodeForces
Links:
Tags:
Problem setters: