S = input() n = len(S) cc = [','] * ((n-1)*4//3 + 1) for i in range(n): cc[len(cc)-1-i*4//3] = S[n-1-i] print(''.join(cc))