The function takes a string input and returns the first character of the string.

[CODE]:
```python
def f(x):
    return x[0]
```
