import re
l=list(input())
num,alp=0,''
for i in range(len(l)):
    if re.match('\D', l[i]): 
        alp=l[i]
    else: 
        num=num*10+int(l[i])  
    if i!=len(l)-1:
        if re.match('\D', l[i+1]):
            if num%2==0:
                print(alp*num,end='')
            else:print(alp,num,sep='',end='')
            num,alp=0,''
    else:
        if num%2==0:
            print(alp*num,end='')
        else:
            print(alp,num,sep='',end='')
d4af48117be1151b3eb6c7ef438a2574b70c2aee
<mask token>

<mask token>
for i in range(len(l)):
    if re.match('\\D', l[i]):
        alp = l[i]
    else:
        num = num * 10 + int(l[i])
    if i != len(l) - 1:
        if re.match('\\D', l[i + 1]):
            if num % 2 == 0:
                print(alp * num, end='')
            else:
                print(alp, num, sep='', end='')
            num, alp = 0, ''
    elif num % 2 == 0:
        print(alp * num, end='')
    else:
        print(alp, num, sep='', end='')

<mask token>
l = list(input())
num, alp = 0, ''
for i in range(len(l)):
    if re.match('\\D', l[i]):
        alp = l[i]
    else:
        num = num * 10 + int(l[i])
    if i != len(l) - 1:
        if re.match('\\D', l[i + 1]):
            if num % 2 == 0:
                print(alp * num, end='')
            else:
                print(alp, num, sep='', end='')
            num, alp = 0, ''
    elif num % 2 == 0:
        print(alp * num, end='')
    else:
        print(alp, num, sep='', end='')

import re
l = list(input())
num, alp = 0, ''
for i in range(len(l)):
    if re.match('\\D', l[i]):
        alp = l[i]
    else:
        num = num * 10 + int(l[i])
    if i != len(l) - 1:
        if re.match('\\D', l[i + 1]):
            if num % 2 == 0:
                print(alp * num, end='')
            else:
                print(alp, num, sep='', end='')
            num, alp = 0, ''
    elif num % 2 == 0:
        print(alp * num, end='')
    else:
        print(alp, num, sep='', end='')

import re
l=list(input())
num,alp=0,''
for i in range(len(l)):
    if re.match('\D', l[i]): 
        alp=l[i]
    else: 
        num=num*10+int(l[i])  
    if i!=len(l)-1:
        if re.match('\D', l[i+1]):
            if num%2==0:
                print(alp*num,end='')
            else:print(alp,num,sep='',end='')
            num,alp=0,''
    else:
        if num%2==0:
            print(alp*num,end='')
        else:
            print(alp,num,sep='',end='')