code quest 2012 prob03 partial soln; reads extra line of input