while True: try: s = input() max_l = 0 dp = [0] * (len(s) + 1) for i in range(1, (len(s) + 1)): if s[i - 1].isdigit(): dp[i] = dp[i - 1] + 1 max_l = max(max_l, dp[i]) else: dp[i] = 0 ...