add input_long whose return code indicates EOF
add wrln to write a new line