The function f(x) adds the first character of the input string to the end of the string.

[CODE]: 
```python
def f(x: str) -> str:
    return x + x[0]
```