import re
print(re.match(r'(\d*-?)+',input()).group())