An integer sequence of multiple datasets. The end of the input is indicated by two zeros on a line.
Each dataset consists of 5 pairs of integers (a1, a2), (b1, b2), (c1, c2), (d1, d2), (e1, e2), where 1 ≤ ai, bi, ci, di, ei ≤ 10000.
The number of datasets is no more than 100.

### Example Input:

```
1593 4311
4321 2155
1256 6421
5310 1455
2152 5421
1549 3386
4528 3719
1234 4321
3330 3109
2739 2199
0 0
```

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