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