#include #define rep(i, n) for (int i = 0; i < n; ++i) using ll = long long; using namespace std; const int INF = 1e9; int main() { string S,buf; cin >> S; stringstream ss{S}; bool flag = true; while(getline(ss,buf,',')){ if(buf!="AC") flag = false; } flag ? cout << "Done!" : cout << "Failed..."; cout << endl; return 0; }