how to read input