An integer L (4 ≤ L ≤ 10).
An integer H (1 ≤ H ≤ 10^3).
H lines of inputs, each containing:
- A string of L digits.
- Two integers HIT and BLOW (0 ≤ HIT, BLOW ≤ L).

### Example Input:

```
6 4
160348 0 4
913286 2 3
431289 3 1
671283 3 3
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[int, int, List[Tuple[str, int, int]]]]):
    '''
    inputs: a list of tuples, where each tuple contains:
        - an integer L
        - an integer H
        - a list of H tuples, each containing:
            - a string of L digits
            - an integer HIT
            - an integer BLOW
    '''
```