from math import isqrt n=int(input()) s=isqrt(n) if (s+1)*n-s*n>s*(s+1): s+=1 print(s+n//(s+1))