import re

try:
  while True:
    x = input()
    print(re.sub(r"(.)(?=(...)+$)", "\\1,", x))
except (EOFError):
  pass