Multiple datasets, each dataset consists of the following:

An integer n (n ≤ 15), representing some quantity.
Three distinct characters s, t, b from the set {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'}.

### Example Input:

```
1
E A C
1
E B C
2
E A B
```

### Function Signature:
Write a function f(inputs) that takes in the input as a list of tuples.
def f(inputs: List[Tuple[int, str, str, str]]):
    ''' 
    inputs: a list of tuples, where each tuple contains:
        - an integer
        - three distinct characters
    '''