An integer n (0 ≤ n ≤ 500), representing some quantity or size.
An integer h (0 ≤ h ≤ 200), indicating a count or number of elements.
h lines, each containing:
  - A string ci from the set {"xy", "xz", "yz"}.
  - An integer ai (1 ≤ ai ≤ n).
  - An integer bi (1 ≤ bi ≤ n).

### Example Input:

```
4 3
xy 4 4
xz 1 2
yz 2 3
```

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