A=input() N=len(A) B=N%3 O=A[:3] S=3 if B>0: O=A[:B] S=B for i in range(S,N,3):O+=','+A[i:i+3] print(O)