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