import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (char c : sc.next().toCharArray()) { if (c != 'A' && c != 'C' && c != ',') { System.out.println("Failed..."); return; } } System.out.println("Done!"); } }