import sys

a = list(input())
k = len(a)
#倒序每隔3个遍历
for i in range(k,0,-3):
    if i <k:
        a.insert(i,',')
print(''.join(a))