n = gets.to_i
p Math.sqrt(n / 3.0).ceil(0)