#33: single readLine() call is replaced with a series