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