number=int(raw_input(""))
digits = []
while number > 0:
    r = number % 10
    if r & 1 != 0:
        digits.append(str(r))
    number=number/10
digits = reversed(digits)
print (" ".join(digits))

950c72f423e9c07867190ec5d0309998428e93ee
<mask token>

<mask token>
while number > 0:
    r = number % 10
    if r & 1 != 0:
        digits.append(str(r))
    number = number / 10
<mask token>
print(' '.join(digits))

number = int(raw_input(''))
digits = []
while number > 0:
    r = number % 10
    if r & 1 != 0:
        digits.append(str(r))
    number = number / 10
digits = reversed(digits)
print(' '.join(digits))

number=int(raw_input(""))
digits = []
while number > 0:
    r = number % 10
    if r & 1 != 0:
        digits.append(str(r))
    number=number/10
digits = reversed(digits)
print (" ".join(digits))
