package main import ( "fmt" "log" "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 { log.Print("Done!") } else { log.Print("Failed...") } }