Multiple data sets will be given. Each data set will be in the following format:
An integer n (1 ≤ n ≤ 12), representing some quantity or size.
A list of integers s of size n, where each integer is between 1 and 100.
The input ends with a line containing a single 0.
There are no more than 200 datasets.

### Example Input:

```
10
4 5 1 1 4 5 12 3 5 4
0
```

### Function Signature:
Write a function f(datasets) that takes in the input. 
def f(datasets: List[Tuple[int, List[int]]]): 
    ''' 
    datasets: a list of tuples, each containing an integer and a list of integers
    '''