N = input() for i in range(len(N)): if i != 0 and (len(N) - i) % 3 == 0: print(",", end = "") print(N[i], end = "") print("")