n = gets.to_i p Math.sqrt(n / 3).round(0)