#P9973. Detecting ChatSAA Generated Sentences

    ID: 23117 Type: Default 1000ms 256MiB

Detecting ChatSAA Generated Sentences

Detecting ChatSAA Generated Sentences

A new large language model, ChatSAA, has been developed with a unique characteristic: every text generated by the model has a fixed watermark prefix consisting of exactly 19 characters. This watermark is a distinctive marker that verifies the text was generated by ChatSAA. In contrast, human-written sentences do not contain this prefix.

Your task is to determine whether a given sentence was generated by ChatSAA or written by a human. A sentence is considered to be generated by ChatSAA if its first 19 characters are exactly the watermark string

Let the watermark be given as:

[ \texttt{THIS_IS_CHATSAA_MOD} ]

If a sentence is generated by ChatSAA, output ChatSAA; otherwise, output Human.

Input format: The first line contains an integer T representing the number of sentences. The following T lines each contain one sentence.

Output format: For each sentence, output a single line: ChatSAA if the sentence is generated by ChatSAA, or Human if not.

Note: The length of each sentence can vary. It is guaranteed that no sentence will have less than 0 characters. Consider proper string handling when the sentence length is less than 19.

inputFormat

The input begins with an integer T (1 ≤ T ≤ 1000) indicating the number of sentences to check. This is followed by T lines, each containing a sentence. Each sentence may include spaces and punctuation.

outputFormat

For each sentence, output on a separate line ChatSAA if its first 19 characters exactly equal THIS_IS_CHATSAA_MOD. Otherwise, output Human.

sample

3
THIS_IS_CHATSAA_MODGreetings from AI.
Hello there.
THIS_IS_CHATSAA_MODAnother example.
ChatSAA

Human ChatSAA

</p>