The function returns the first character of the input string.
[CODE]:
```python
def f(x):
    return x[0]
```