import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String[] ary = s.split(","); int flg = 0; for (int i = 0; i < ary.length; i++) { if (ary[i].equals("TLE") || ary[i].equals("MLE") || ary[i].equals("WA")) { flg += 1; } } if (flg > 0) { System.out.println("Failed..."); } else { System.out.println("Done!"); } sc.close(); } }