let str;
while(str = readline()){
  let res = str.replace(/(\d+)/g,function(v0,v1){
    return '*'+v1+'*'
  })
  console.log(res)
}