s=input() ans=s[-3:] s=s[:-3] while len(s)>0: c=s[-3:] s=s[:-3] ans=c+','+ans print(ans)