import sys input = sys.stdin.readline N = int(input()) print(len(str(int(N ** 0.5))))