N = input() N = N[::-1] l = [] for j in range(len(N)): if j % 3 == 0: l.append(',') l.append(N[j]) l.pop(0) l.reverse() print(*l,sep='')