n = int(input()) import math a = math.isqrt(n) ans = a+n//(a+1) print(ans)