#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] >> c[2]) { if (c[0] != 'A') { flag = false; break; } } if (flag) cout << "Done!" << endl; else cout << "Failed..." << endl; }