a = list(input()) b = len(a) if b < 4: print(a) else: while b > 4: b -= 3 a.insert(b, ',') print(''.join(a).replace(' ', ''))