#JavaScript, <s>59</s> 58 bytes Input & output as an array of strings. <!-- language: lang-js --> a=>a.map(x=>`-0123456789`.replace(eval(`/[^${x}]/g`),` `)) --- ##Try it <!-- begin snippet: js hide: false console: false babel: false --> <!-- language: lang-js --> o.innerText=(g=s=>(f= a=>a.map(x=>`-0123456789`.replace(eval(`/[^${x}]/g`),` `)) )(s.split`,`).join`\n`)(i.value="1,729,4728510,-3832,748129321,89842,-938744,0,11111");oninput=_=>o.innerText=g(i.value) <!-- language: lang-css --> input{width:100%;} <!-- language: lang-html --> <input id=i><pre id=o></pre> <!-- end snippet -->