12 lines
228 B
Python
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)
|