The function f(x) takes a string as input and appends the letter 'P' at the end of it.
