An integer n (1 ≤ n ≤ 1,000), representing some quantity or size.
A list of n tuples where each tuple contains a character and an integer. The character is either "(" or ")", and the integer is between 1 and 10^6.

### Example Input:
```
3
( 5
) 4
) 1
```

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