input words output the terminal