An integer H (1 ≤ H ≤ 12), representing some quantity or size.
An integer W (1 ≤ W ≤ 12), representing some quantity or size.
A list of H lists, each containing W integers, where each integer is either 0 or 1.

### Example Input:

```
4 4
1 0 0 0
0 0 1 0
0 1 0 0
1 0 0 1
1 1
1
2 3
1 0 0
0 0 1
0 0
0 0
```

### Function Signature:
Write a function f(inputs) that takes in the input. 
def f(inputs: List[Tuple[int, int, List[List[int]]]]): 
    ''' 
    inputs: a list of tuples, where each tuple consists of:
        - an integer H
        - an integer W
        - a list of H lists, each containing W integers
    '''