import Data.List (intercalate)
in putStrLn $ s
++ "+" ++ show b
++ "+(" ++ intercalate
"+" c
++ ")=" ++ d
where f '-' (x:xs) = ('-':x):xs
f b a = [b]:a
aW1wb3J0IERhdGEuTGlzdCAoaW50ZXJjYWxhdGUpCgptYWluID0gZ2V0TGluZSA+Pj0gXHMgLT4gbGV0IGIgPSBsZW5ndGggcwogICAgICAgICAgICAgICAgICAgICAgICAgICAgIGMgPSBmb2xkciBmIFtdIHMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkID0gc2hvdyAkIHJlYWQgcyArIGIgKyBzdW0gKG1hcCByZWFkIGMpCiAgICAgICAgICAgICAgICAgICAgICAgICBpbiBwdXRTdHJMbiAkIHMgKysgIisiICsrIHNob3cgYiArKyAiKygiICsrIGludGVyY2FsYXRlICAiKyIgYyArKyAiKT0iICsrIGQKICB3aGVyZSBmICctJyAoeDp4cykgPSAoJy0nOngpOnhzCiAgICAgICAgZiBiIGEgPSBbYl06YQ==