s = input().strip() words = s.split() lengths = [str(len(word)) for word in words] print(','.join(lengths))