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 = str(input())
  if s[1] = "A" and [s[3], s[-2] ].count("C") == 1 :
      s[1] = a
      s[3] = a
      s[-2] = a
      a = ""
      for i in s:
          a = a + s
      if a.islower() :
          print("AC")
      else:
          print("WA")
  else:
      print("WA")
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."}]