looked good to me, and turned out to be basically what the book gave as the answer as well... except I tried it myself and it doesn't compile. oO
Gives the same error as my original version. (Unterminated <>)
kyle's suggestion seems to work great though (reversing -s and 10000).