The function takes an input string and outputs a new string consisting of only the uppercase letters present in the input string.

[CODE]:
```python
def f(x):
    output = ""
    for char in x:
        if char.isupper():
            output += char
    return output
```