import math n = int(input()) sq = int(math.sqrt(n)) # print(sq) ans = len(str(sq)) print(ans)