#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; char c; bool ok = true; for (int i = 1; i < s.size(); i += 3) { if (s[i - 1] != 'A' || s[i] != 'C') { ok = false; break; } } cout << (ok ? "Done!" : "Failed..."); return 0; }