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