from __future__ import division

texto = raw_input("Ingrese un texto: ")
pals = texto.split()
print "%.2f" % (sum(len(x) for x in pals) / len(pals))

