import ren=raw_input()n=re.sub("[^a-z]+","",n.lower())print n==n[::-1]
1221
True
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!