there n table bowling player rate ith player equal r_i compose maximum number team way player belong team team contain exactly ab player team contain group player rating group b player rate k time large rating player group for example n12 r1 1 2 2 2 2 2 3 3 4 6 6 a1 b2 k2 compose team rating 1 2 2 team rating 3 6 6 so maximum number team 3find maximum number team give n r_1 dot r_n b k compose respect give requirement