from sys import stdin def main(): input = lambda: stdin.readline()[:-1] C = input() print(len(C) - 1) main()