#coding: utf-8 n = list(input()) n.reverse() cnt = 0 for i in range(0, len(n)-1, 3): n.insert(3*(cnt+1)+cnt, ",") cnt += 1 n.reverse() print("".join(n[1:]))