local s = io.read()

local function getAC(str)
	local n = 0
	for w in string.gmatch(str, "%u+") do
		n = n + 1
	end
	if n == 2 then
		local p = string.find(str, "A")
		local p2 = string.find(str, "C")
		if p == 1 and p2 == 3 then
			return "AC"
		end
	end
	return "WA"
end

local ss = getAC(s)
print(ss)