t = "".join(c.lower() for c in input() if c.isalnum())print(1 if t == t[::-1] else 0)
zaaazaaaz zaaazbaaz
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!