str1=input()
for i in str1:
    if i.isdigit():
        print(i,end="")
print(" ")

400c2f0004987eebcf016493675e499398a6970c
<mask token>

<mask token>
for i in str1:
    if i.isdigit():
        print(i, end='')
print(' ')

str1 = input()
for i in str1:
    if i.isdigit():
        print(i, end='')
print(' ')

str1=input()
for i in str1:
    if i.isdigit():
        print(i,end="")
print(" ")
