def ask_recursively question
puts question
reply = gets.chomp.downcase
if reply == 'yes'
true
elsif reply == 'no'
false
else
puts 'Please answer "yes" or "no".'
ask_recursively question
end
end
ask_recursively 'Do you wet the bed?'
ZGVmIGFza19yZWN1cnNpdmVseSBxdWVzdGlvbgogICAgcHV0cyBxdWVzdGlvbgoJcmVwbHkgPSBnZXRzLmNob21wLmRvd25jYXNlCgkKCWlmIHJlcGx5ID09ICd5ZXMnCgkJdHJ1ZQoJZWxzaWYgcmVwbHkgPT0gJ25vJwoJCWZhbHNlCgllbHNlCgkJcHV0cyAnUGxlYXNlIGFuc3dlciAieWVzIiBvciAibm8iLicKCQlhc2tfcmVjdXJzaXZlbHkgcXVlc3Rpb24KCWVuZAplbmQKCmFza19yZWN1cnNpdmVseSAnRG8geW91IHdldCB0aGUgYmVkPycKCQ==