import sys

str = input()
last_char = str.split(' ')[-1]
print(len(last_char))