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