The smallest automation recognizing the subwords of a text