import sys

my_list = list(map(str,input().split()))
print(len(my_list[-1]))