import java.util.Scanner; public class no932 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final String FAILED = "Failed..."; final String DONE = "Done!"; String[] s = sc.next().split(","); boolean failedFlag = false; for (String tmp : s) { if (!tmp.equals("AC")) { failedFlag = true; break; } } if (failedFlag) { System.out.println(FAILED); } else { System.out.println(DONE); } } }