import java.io.*;
import java.util.Scanner;

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

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