s=input() ans="" for i in range(len(s)): ans+=s[i] if (len(s)-i)%3==1 and i!=len(s)-1: ans+="," print(ans)