How to read two inputs separated by space in a single line?