while gets do a=$_.chomp.downcase if a.length<=10 i=1 else i=-6 end if a[0..3].include?("digi") if a[i..-1].include?("nyo") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("petit") if a[i..-1].include?("nyu") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("rabi") puts "CORRECT (maybe)" elsif a[0..4].include?("gema") if a[(i-1)..-1].include?("gema") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("piyo") if a[i..-1].include?("pyo") puts "CORRECT (maybe)" else puts "WRONG!" end else puts "WRONG!" end end