import sys input = sys.stdin.readline from math import log10 from math import sqrt N=int(input()) x=log10(sqrt(N)) print(int(-(x//(-1))))