An alphanumeric string S of at most 31 characters.

### Example Input:

```
ACM
```

### Function Signature:
Write a function f(S) that takes in the input.
def f(S: str):
    '''
    S: a string
    '''