area = gets.chomp.to_i r = (Math.sqrt(area / 3)).floor r = 1 if r <= 0 puts r