public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

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

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

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

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

    public static void main(String[] args) {
        System.out.println(scanner.next().matches("A[a-z]+C[a-z]+") ? "AC" : "WA");
    }
}