input = "The purpose of our lives is to be happy" words = input.split() print(len("".join(words[1:len(words)-1])))