f=lambda s:s and f(s[:-3])+','+s[-3:] while 1:print f(`input()`)[1:]