import re while 1:print(','.join(re.findall('..?.?',`input()`[::-1])))[::-1]