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