n = int(input()) import math i = math.floor(n ** 0.5) ans = i + 2 + n - i ** 2 print(ans)