import java.util.*;import java.io.*;public class Main{public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");}} import java.util.*; util.* java import java.io.*; io.* java public class Main{public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");}} Main public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");} main {System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");} System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA") System.out.print System.out System System.out new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA" new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$") new Scanner(System.in).next().matches new Scanner(System.in).next() new Scanner(System.in).next new Scanner(System.in) "^A[a-z]+C[a-z]+$" "AC" "WA" String[]a a public class Main{public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");}} public class Main{public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");}} Main
import java.util.*;import java.io.*;public class Main{public static void main(String[]a){System.out.print(new Scanner(System.in).next().matches("^A[a-z]+C[a-z]+$")?"AC":"WA");}}