import re print(*re.findall(r'\d\d+(?= 0)',input()))