hw1: get input from the standard input