#include #include #include using namespace std; int main() { string s; getline(cin, s); istringstream iss(s); vector vc; string ss; while (getline(iss, ss, ',')) { vc.push_back(ss); } for (int i = 0; i < vc.size(); i++) { if (vc.at(i) != "AC") { cout << "Failed..." << endl; return 0; } } cout << "Done!" << endl; return 0; }