#include using namespace std; typedef long long ll; // Welcome to my source code! int main() { string s; cin >> s; int n = s.size(); bool flag = true; for (int i = 0; i < n; i += 3) { if (s[i] != 'A') { flag = false; break; } } if (flag) cout << "Done!" << endl; else cout << "Failed..." << endl; }