import math inputest = int(input()) result = int(math.log10(math.sqrt(inputest))+1) print(result)