def i(node): if node is None or not str(node): return 0 else: return int(str(s))