N = input() A = "" while N: A = N[-3:] + A N = N[:-3] if N: A = "," + A print(A)