sen = input()

word_list = list(sen.split(" "))

print(len(word_list[-1]))