#include using namespace std; typedef long long ll; // Welcome to my source code! int main() { char c[3]; bool flag = true; while (cin >> c[0] >> c[1]) { if (c[0] != 'A') { flag = false; break; } cin >> c[2]; } if (flag) cout << "Done!" << endl; else cout << "Failed..." << endl; }