import sys input = sys.stdin.readline from math import log10 N=int(input()) x=log10(N) print(int(x))