from math import isqrt def main(): N=int(input()) M=isqrt(N) print(M+2+(N-pow(M,2))) return main()