Help me in solving BUCKETS problem

My issue

Not able to understand question and given input.

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here

}

Problem Link: Choosing from Buckets Practice Coding Problem - CodeChef