
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan scan.close() scan.close scan if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		} !S.startsWith("A") S.startsWith("A") S.startsWith S "A" {
			System.out.println("WA");
			return;
		} System.out.println("WA") System.out.println System.out System System.out "WA" return; if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		} S.substring(2, S.length()-1).indexOf("C")<0 S.substring(2, S.length()-1).indexOf("C") S.substring(2, S.length()-1).indexOf S.substring(2, S.length()-1) S.substring S 2 S.length()-1 S.length() S.length S 1 "C" 0 {
			System.out.println("WA");
			return;
		} System.out.println("WA") System.out.println System.out System System.out "WA" return; String s = S.toLowerCase(); s S.toLowerCase() S.toLowerCase S int w = 0; w 0 for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		} int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		} {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		} if(S.charAt(i) != s.charAt(i)) {
				w++;
			} S.charAt(i) != s.charAt(i) S.charAt(i) S.charAt S i s.charAt(i) s.charAt s i {
				w++;
			} w++ w if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		} w==2 w 2 {
			System.out.println("AC");
		} System.out.println("AC") System.out.println System.out System System.out "AC" {
			System.out.println("WA");
		} System.out.println("WA") System.out.println System.out System System.out "WA" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();

		if(!S.startsWith("A")) {
			System.out.println("WA");
			return;
		}
		if(S.substring(2, S.length()-1).indexOf("C")<0) {
			System.out.println("WA");
			return;
		}
		String s = S.toLowerCase();
		int w = 0;
		for(int i=0; i<s.length(); i++) {
			if(S.charAt(i) != s.charAt(i)) {
				w++;
			}
		}
		if(w==2) {
			System.out.println("AC");
		} else {
			System.out.println("WA");
		}
	}

}
