1057: 回文字符串

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:255 Solved:57

Description

给出一些长度不超过1000的字符串,判断它是不是回文(顺读,逆读均相同)的。

Input

第一行一个数字 0<n<100
后续n行字符串,其长度不超过1000。

Output

可能有多组测试数据,对于每组数据,如果是回文字符串则输出"Yes!”,否则输出"No!"。

Sample Input Copy

2
hellolleh
helloworld

Sample Output Copy

Yes!
No!