aboutsummaryrefslogtreecommitdiff
path: root/challenge-095/abigail/python/ch-1.py
blob: 5378ca65f6ecb270001d7546ae59e350fbf6e453 (plain)
1
2
3
4
5
6
7
8
9
import fileinput
import re

for line in fileinput . input ():
    line = line . rstrip ()
    if (re . match (r'^\d+(\.\d+)?$', line) and line == line [::-1]):
        print 1
    else:
        print 0