11214 - Find Palindrome   

Description

Palindrome is a string that is identical to its reverse, like "level" or "aa". Given a string, find if there is a palindrome with length greater than or equal to 2 in the string.

 

Input

The first line of the input is an integer N, indicating the number of test cases.

In the next N lines, each contains a string. The length of each string is less than 1000. The number of test cases is less than or equal to 10.

Output

In each test case, output “Yes” if there is a palindrome with length greater than or equal to 2 in the input. Otherwise, output “No”. 

Sample Input  Download

Sample Output  Download

Tags




Discuss