from typing import Final, List import math N = int(input()) a = int(math.sqrt(N)) print(len(str(a)))