from math import isqrt, prod,comb print(len(str(isqrt(int(input())))))