An integer T (1 ≤ T ≤ 50), representing the number of tuples.
Each tuple consists of:
1. An integer x (0 ≤ x < 10).
2. An integer y (0 ≤ y < 10).
3. An integer s (1 ≤ s ≤ 3).

### Example Input:

```
6
2 5 3
3 6 1
3 4 2
4 5 2
3 6 3
2 4 1
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[int, int, int]]):
    '''
    inputs: a list of tuples, where each tuple contains three integers
    '''
```