import re
phone = input()
# \D,匹配一个非数字的字符,等价于[^0-9]
print(re.sub(r"\D", '', phone))