#include using namespace std; #define rep(i,N) for(int i=0;i inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } const int INF = 1e9; const ll INFLL = 1e18; const ll MOD = 1e9+7; const double PI = acos(-1.0); const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; /*------------------------------------/ for library*/ template vector> RunLengthEncoder(vector &v){ vector> RLE; int cnt = 1; for(int i = 0; i < (int)v.size(); ++i){ if(i == (int)v.size()-1){ RLE.push_back(make_pair(v[i], cnt)); continue; } if(v[i] == v[i+1])cnt++; else{ RLE.push_back(make_pair(v[i],cnt)); cnt = 1; } } return RLE; } vector> RunLengthEncoder_ForString(string v){ vector> RLE; int cnt = 1; for(int i = 0; i < (int)v.size(); ++i){ if(i == (int)v.size()-1){ RLE.push_back(make_pair(v[i], cnt)); continue; } if(v[i] == v[i+1])cnt++; else{ RLE.push_back(make_pair(v[i],cnt)); cnt = 1; } } return RLE; } /*------------------------------------*/ int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); string S; cin>>S; int N = S.size(); string ans = "Done!"; rep(i,N){ if(S[i] == ',')continue; if(S[i] == 'W'||S[i] =='T'||S[i]=='M'){ ans = "Failed..."; } } cout<