n = int(input()) import math a = int(math.sqrt(n)) print(len(str(a)))