import re
print(re.match(r'[\d|-]*',input()).group())

'[(\d)-]+'
'[0-9|-]+'
'^[\d-]+'