#P2454. 回文字符串

回文字符串

Description

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

Input Format

输入多行字符串,其长度不超过1000。

Output Format

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

Source

字符串