Problem1007--回文字符串判断

1007: 回文字符串判断

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输入一个字符串S,判断这个字符串是否是回文字符串,是的话输出1,否则输出0。

Input

输入有多行,每行包含一个字符串。

Output

输出也有多行,每行有一个字符“1”或“0”,若对应的输入为回文字符串,则此行输出1,否则输出0。

Sample Input Copy

abcba
20111102
abc

Sample Output Copy

1
1
0

Source/Category

admin