You never read in the endline character after the negative number.