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