import random
def make_word(n):
return "".join(chr(97+random.randint(0,25))for i in range(n))
def make_txt(n):
return " ".join(make_word(5)for i in range(n))
txt=make_txt(10)
a=""
for s in txt.split():
a+=s[0].upper()+s[1:].lower()+" "
print(a[:-1])