The function f(x) capitalizes the input word for specific tens (thirty, fifty, seventy, and ninety) and the word "seven."

