from math import log10, floor, sqrt def main(): N = int(input()) print(floor(log10(floor(sqrt(N))) + 1)) if __name__ == "__main__": main()