import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner stdIn = new Scanner(System.in); //int a = stdIn.nextInt(); //int b = stdIn.nextInt(); //int num[] = new int[3]; String s = stdIn.next(); char c[] = s.toCharArray(); //int sum = 0; boolean flag = true; for(int i = 0; i < s.length(); i++){ if(c[i] == 'A' || c[i] == 'C' || c[i] == ','){ }else{ flag = false; break; } } if(flag){ System.out.println("Done!"); }else{ System.out.println("Failed..."); } //System.out.println(); //System.out.print(); } }