import math N = input() print int(math.sqrt(N/2))