N = input() l = len(N) ans = "" for i in range(l): if i not in [0,l-1] and (l-i)%3 == 0: ans += "," ans += N[i] else: ans += N[i] print(ans)