import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); String[] s = str.split(","); boolean flag = true; for(String temp : s) { if(temp.equals("WA") || temp.equals("TLE")) flag = false; } System.out.println((flag)? "Done!" : "Failed..."); } }