An integer K (0 ≤ K < 100,000), representing some quantity or size.
A string S of digits of length |S|, where each digit is between 1 and 9.

### Example Input:

```
2
15267315
```

### Function Signature:
Write a function f(K, S) that takes in the input. 
```python
def f(K: int, S: str):
    ''' 
    K: an integer 
    S: a string of digits
    '''
```