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