input without number of lines known