"Main.hs", line 32: No instance for: Prelude.MonadZero IO
"Main.hs", line 32: in a do statement
This probably means that you need to "twiddle" some patterns; e.g.,
I added the twiddle to the `getArgs'-related pattern here:
main = do
~[a1] <- getArgs
let x = fst (head ((reads::ReadS Int) a1)
putStr (show (result x))