import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
} Main public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    } main {
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA") System.out.println System.out System System.out S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA" S.matches("A[a-z]+C[a-z]+") S.matches S "A[a-z]+C[a-z]+" "AC" "WA" String[] args args public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
} public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		//int N = sc.nextInt();
    	//int M = sc.nextInt();
      	String S = sc.next();
      System.out.println(S.matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
}
