read values from stdin