# Your code here! s = gets.split(',') s.each do |c| if c != "AC" p "Done!" return 0 end end p "Failed..." return 0