An integer N (0 ≤ N ≤ 10^4), followed by N cards, each card is a string of 2 characters. This is repeated twice.

### Example Input:
```
1
SA
1
C2
2
SA HA
2
C2 C3
5
S3 S5 S8 S9 S2
3
H7 H3 H4
10
H7 CJ C5 CA C6 S2 D8 DA S6 HK
10
C2 D6 D4 H5 DJ CX S8 S9 D3 D5
0
```

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