import re
 
print(re.sub(r'000([1-9]|$)', r' \1', '76000123000100000101000').strip())