#include using namespace std; int main(){ bool flag=true; while(flag){ string s; cin >>s; if(s!="AC"){ flag = false; break; } } if(flag){ cout << "Done!" << endl; } else{ cout << "Failed..." << endl; } }