from math import isqrt N = int(input()) sq = isqrt(N) print(sq + N // (sq + 1))