n = input() n = n[::-1] ans = '' p = 1 for nn in n: if p % 3 == 0: ans +=',' ans += nn print(ans[::-1])