Palindrome Lines

No attempts yetTime limit1sMemory limit256 MB

Problem

A palindrome reads the same forward and backward. Uppercase and lowercase letters count as the same letter, and a space counts as one character just like any other. Decide whether each given line is a palindrome.

Input

The first line contains the number of test cases nn. Each of the next nn lines holds one line of text of at most 18 characters. A line can contain spaces.

Output

For each test case print one line: Yes if the line is a palindrome, No otherwise.