The function f(x) extracts the capital letters from the given input string x.

[CODE]:
```
def extract_capital_letters(s: str) -> str:
    return ''.join([char for char in s if char.isupper()])
```