import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	} main {
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	} String s = (new Scanner(System.in)).next(); s (new Scanner(System.in)).next() (new Scanner(System.in)).next (new Scanner(System.in)) String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA"; ans 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" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		String s = (new Scanner(System.in)).next();
		String ans = s.matches("^A[a-z]+C[a-z]+$") ? "AC" : "WA";
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

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