import re
p = re.compile(r'(?=(\d+(?<!\\)\'))')
test_str = input()
print(re.findall(p, test_str))