import re
phone = input()

# 适用于固定格式的匹配,不一定能通过,但是一眼就能看懂的简单逻辑写法
# matchobj = re.match(r"[0-9]{3}-[0-9]{4}-[0-9]{3}", phone)

# 通用,简洁的写法
matchobj = re.match(r'[0-9|-]*', phone)
print(matchobj.group())