words = input()
words = words.split()
print(len(words[-1]))