#include #define rep(i,n) for(int i=0;i ; const int INF = 1e9; const int MOD = 1000000007; int main(){ string s; cin >> s; int n = s.size(); bool ok = true; rep(i,n-2){ if(s[i] == 'T' && s[i+1] == 'L' && s[i+2] =='E') ok = false; if(s[i] == 'M' && s[i+1] == 'L' && s[i+2] =='E') ok = false; } rep(i,n-1){ if(s[i] =='W' && s[i+1] =='A') ok = false; } cout << (ok ? "Done!" : "Failed...") << endl; return 0; }