import java.util.*;

class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);   
      String s = scan.next();
      System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);   
      String s = scan.next();
      System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA");
    }
} Main public static void main(String[] args){
      Scanner scan = new Scanner(System.in);   
      String s = scan.next();
      System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA");
    } main {
      Scanner scan = new Scanner(System.in);   
      String s = scan.next();
      System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA") System.out.println System.out System System.out s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA" s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") s.matches s "[A][a-z][a-z]*[C][a-z]*[a-z]" "AC" "WA" String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);   
      String s = scan.next();
      System.out.println(s.matches("[A][a-z][a-z]*[C][a-z]*[a-z]") ? "AC" : "WA");
    }
}