#C4206. Palindrome Checker

    ID: 47719 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

In this problem, you are given a list of strings. Your task is to determine whether each string is a palindrome. A string (s) is considered a palindrome if it reads the same forward and backward, i.e., (s = s^R), where (s^R) is the reverse of (s). For each string, print "Yes" if it is a palindrome and "No" otherwise.

inputFormat

The first line of input contains an integer (n), the number of strings. Each of the following (n) lines contains a single string. Note that the string can be empty.

outputFormat

For each string, output a line containing "Yes" if the string is a palindrome, otherwise output "No".## sample

3
radar
hello
level
Yes

No Yes

</p>