#abc215a. A - Your First Judge

A - Your First Judge

Score : 100100 points

问题描述

给定一个字符串 SS,如果它与 Hello,World! 完全匹配,则打印 AC;否则打印 WA

什么是完美匹配?若字符串 AA 的长度等于字符串 BB 的长度,并且对于所有满足 1iA1 \le i \le |A| 的整数 ii,第 ii 个字符的 AA 等于第 ii 个字符的 BB,则称字符串 AA 完美匹配字符串 BB

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Given a string SS, print AC if it perfectly matches Hello,World!; otherwise, print WA.

What is a perfect match?Strings AA is said to perfectly match BB when the length of AA is equal to that of BB, and the ii-th character of AA is the same as the ii-th character of BB for every integer ii such that 1iA1 \le i \le |A|.

Constraints

  • 1S151 \le |S| \le 15
  • SS consists of English lowercase letters, English uppercase letters, ,, and !.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the answer.

Sample Input 1

Hello,World!

Sample Output 1

AC

The string SS perfectly matches Hello,World!.

Sample Input 2

Hello,world!

Sample Output 2

WA

The seventh character from the beginning should be an uppercase W in Hello,World!, but SS has a lowercase w in that position. Thus, SS does not match Hello,World!.

Sample Input 3

Hello!World!

Sample Output 3

WA

update @ 2024/3/10 09:32:33

}