import java.util.Scanner;

public class Main {

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

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

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

} Main
import java.util.Scanner;

public class Main {

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

}
