import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static void myout(Object t){System.out.println(t);} static String getStr(){return sc.next();} static int getInt(){return sc.nextInt();} static Long getLong(){return sc.nextLong();} static boolean isNext(){return sc.hasNext();} public static void main(String[] args){ String S = getStr(); if(S.indexOf("TLE") != -1 || S.indexOf("WA") != -1 || S.indexOf("MLE") != -1){ myout("Failed..."); }else{ myout("Done!"); } } //便利メソッド追加枠ここから //便利メソッド追加枠ここまで }