n = input() l = len(n) judge = [False, False, True] jl = 0 ans = "" for i in range(l): if jl % 3 == 2: ans += "," + n[l-i-1] else: ans += n[l-i-1] print(ans)