'''
import datetime

x = datetime.datetime.now()
print(x)

@Thato Seeletso Mmusi

2020-05-07 11:22:37.688236

'''

import re
from math import c

essay = input()
words = len(essay.split())
chars = len(re.sub(r'\W+', '', essay))

average = int(c(chars / words))
print(average)
 
