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