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