# your code goes here hit=false 10.times do |a| 10.times do |b| 10.times do |c| if hit==false d=a.to_s d.concat(b.to_s) d.concat(c.to_s) puts d S=STDIN.gets.chomp if S=="unlocked" hit=true end end end end end