n = str(input())
n1 =''
c = 0
for i in reversed(n) :
    if c == 3:
        n1 = ','+n1
        c = 0
    n1 = i + n1
    c = c+1
print(n1)