#include #include using namespace std; int main(){ string S; cin >> S; int N = S.size(); bool ok = true; for (int i = 0; i < N; i++){ if (S[i] != "AC,"[i % 3]){ ok = false; } } if (ok){ cout << "Done!" << endl; } else { cout << "Failed..." << endl; } }