The function f(x) takes a word as input and, if the word represents a famous person, it appends their profession to the input. For example, "Einstein" becomes "Einstein, Physicist.", and "Shakespeare" becomes "Shakespeare, Playwright.".

