Provides word chains with a main function accepting input, forming chains with it, and printing these chains.