djfz-2023-s464933/TaskF04/run.py
2024-01-07 21:21:03 +01:00

12 lines
228 B
Python

import re
import sys
def deleteSecondDigitString(line: str):
print(re.sub(r"(\D*)(\d+)(\D+)(\d+)(.*)", r"\g<1>\g<2>\g<3>\g<5>", line))
for line in sys.stdin:
line = line.strip('\n')
deleteSecondDigitString(line)