Read and parsed the input