main=readLn>>=f")" f l@ ~(a:b)x=do putStrLn$(l>>"M(")++shows x l;mapM(f$a:l)[x+11..111];f b$x-10