package main import ( "fmt" "strings" ) func main() { var s string _, _ = fmt.Scan(&s) slice := strings.Split(s, ",") result := true for _, ss := range slice { if ss != "AC" { result = false } } if result { fmt.Print("Done!") } else { fmt.Print("Failed...") } }