str1 = input()
arr = str1.split(" ")
while True:
    str2 = arr.pop()
    if len(str2) == 0:
        continue
    print(len(str2))
    break