import java.util.*; public class SSd { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String ar[] = sc.nextLine().split(","); boolean ans = true; for(String x:ar){ if(!x.equals("AC")){ ans = false; break; } } if(ans) System.out.println("Done!"); else System.out.println("Failed..."); } }