14747 - Palindrome String   

Description

給定一個字串,請判斷是否為回文字串。

 

 

舉例:

 

如果字串是abcba,則需判斷 是 一個回文字串

如果字串是2468,則需判斷 不是一個回文字串

 

Input

一個字串str

 

Note:

1. str可包含大小寫英文字母或數字,且字串長度不超過10位數(最多10個字元)

2. 大小寫英文字母視為不同字元(例如:Level 與 level 判斷結果不同)。

 

Output

輸出比須符合以下格式:

It is bool that str is a palindrome.

 

Note:

1.輸出的最後請務必加上句點與換行符號(. 與 \n)

2.bool 為 "true", "false" 其中一個,str為剛剛輸入的字串

 

Sample Input  Download

Sample Output  Download

Tags




Discuss