2012 summer practice contest 2

C: Bags and balls