import math n = int(input()) if n == 1: print(1) exit() if n == 2: print(2) exit() if n == 3: print(3) exit() print(2 + int(math.sqrt(n)) + (n - int(math.sqrt(n)) ** 2))