// parameter "input" gets all data
function Main(input) {
  var result = 'AC';

  if (input.charAt(0) != 'A') {
    result = 'WA';
  }

  console.log(result);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
