empty line means end of input