c = input() print(len(c)-1)