#include #include #include #include #include using namespace std; using namespace boost::algorithm; int main(){ string str; cin >> str; vector v; split(v, str, boost::is_any_of(",")); for(auto&& i : v){ if(i != "AC"){ cout << "Failed...\n"; return 0; } } cout << "Done!\n"; }