n = input(); l = len(n) k = (l-1)//3; s = (l-1)%3 if k==0: print(n) else: a = "" for i in range(l): a += n[i] if i%3==s: a += "," print(a[:-1])