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