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