x = int(s) if int.tryparse(s) else 0