#include using namespace std; void solve() { string s; cin >> s; cout << (((s.find("WA") != s.npos) or (s.find("TLE") != s.npos) or (s.find("MLE") != s.npos)) ? "Failed..." : "Done!") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }