N = int(input()) s = int(N ** 0.5) print(2 * s if N // s == s else 2 * s - 1)