def main(): i = list(reversed(input())) n = "" for v in range(len(i)): n += i[v] if (v + 1) % 3 == 0: n += "," p = reversed(list(n)) print("".join(p)) main()