s=input() while len(s)>3: a =(s[-3:]) b =(s[:-3]) c += (","+a) print(b + ans)