An integer T (1 ≤ T ≤ 50), representing the number of tuples.
A list of tuples (xi, yi, si) of size T, where each tuple consists of:
- xi (0 ≤ xi < 10), an integer.
- yi (0 ≤ yi < 10), an integer.
- si, an integer from the set {1, 2, 3}.

### Example Input:

```
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 consists of three integers
    '''
```