forgot import stdio.
Implemented a function to read a line.