#include #include int main(void) { char s[400000]; int judge = 0; int i; scanf("%s", s); for (i = 0; i < strlen(s) - 1; i += 3) { if (s[i] != 'A') { judge++; break; } } printf("%s\n", judge ? "Failed..." : "Done!"); return 0; }