str.replace(/(.*name="w+)d+(w+".*)/, "$1!NEW_ID!$3")
str.replace(/(?<=name="w+)d+(?=w+")/, '!NEW_ID!') // look behind & look ahead
print(readline().replace(/(d+)(.) ?/g,(a,b,c)=>c.repeat(b)))