prints the letters of unique words in input file