x = -1 

while x<1 || 100<x do

  puts "Please input favorite number."
  x = gets.to_i

  if  1<=x && x<=100 then
    puts x**3
  else
    puts "The number is less than 101 and more than 0."
  end

end