output_description: If S satisfies all of the conditions in the problem statement, print `AC`;
  otherwise, print `WA`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: S = list(input())
  if S[0] != 'A':
  	print("WC")
  	exit()
  c_count = 0
  upper_count = 0
  for i in range(len(S)):
  	if S[i] == 'C':
  		if (i < 2) | (i > (len(S)-1)):
  			print("WC")
  			exit()
  		else:
  			if c_count == 0:
  				c_count += 1
  			else:
  				print("WA")
  				exit()
  	if S[i].isupper():
  		upper_count++
  
  if (c_count == 1) & (upper_count == 2):
  	print("AC")
problem_description: Statement
  
  You are given a string S. Each character of S is uppercase or lowercase
  English letter. Determine if S satisfies all of the following conditions:
  
    * The initial character of S is an uppercase `A`.
    * There is exactly one occurrence of `C` between the third character from the beginning and the second to last character (inclusive).
    * All letters except the `A` and `C` mentioned above are lowercase.
samples: [{"input": "AtCoder", "output": "AC\n    \n\nThe first letter is `A`, the third letter is `C` and the remaining letters are\nall lowercase, so all the conditions are satisfied.\n\n* * *"}, {"input": "ACoder", "output": "WA\n    \n\nThe second letter should not be `C`.\n\n* * *"}, {"input": "AcycliC", "output": "WA\n    \n\nThe last letter should not be `C`, either.\n\n* * *"}, {"input": "AtCoCo", "output": "WA\n    \n\nThere should not be two or more occurrences of `C`.\n\n* * *"}, {"input": "Atcoder", "output": "WA\n    \n\nThe number of `C` should not be zero, either."}]