import time
t1 = time.strptime(time1, "%Y%m%d")
t2 = time.strptime(time2, "%Y%m%d")
print t1 < t2