take separate lines as input instead of single line
only guess if invalid