Update 1269.cpp

Разбил main на input_words и find_words.