import sys, io, os import math input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline n = input() n=math.sqrt(n) ans=0 while(n>0): n/=10 ans+=1 print(ans) print('\n')