An integer N (2 ≤ N ≤ 26), representing some quantity or size.
A string S encoding a structure involving N unique lowercase letters 'a' to 'z'.
N lines, each containing a lowercase letter and a non-negative integer (0 ≤ integer ≤ 26), separated by a space.

### Example Input:

```
[[m-y]-[a-o]]
o 0
a 1
y 2
m 0
```

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