a = input() b = len(a)-len("1000000007") print(int((b**2)**0.5))