let str; while(str = readline()){ str = str.replace(/[0-9]+/g, (val) => '*' + val + '*'); console.log(str); }