from math import isqrt N = int(input()) ro = isqrt(N) if N // ro == ro: print(ro * 2 - 1) else: print(ro * 2)