s = input()[::-1] print(",".join([s[i:i+3] for i in range(0,len(s)-1,3)])[::-1])