import re

x = input()
print(re.sub(pattern=r"[^\d]", repl="",string = x))

re.sub(r"[^\d]+", "", x)

re.findall(r"\d+", x)