jfz-2023-s473616/TaskF05/run.py
Pawel Felcyn da203c4b6f f
2024-01-21 21:43:56 +01:00

15 lines
360 B
Python

import re
if __name__ == "__main__":
while True:
try:
line = input()
if not line:
break
result = re.sub(r'(\b\w+\b) (\b\w+\b) (\b\w+\b)', lambda match: f'{match.group(1)} {match.group(2)} {"x" * len(match.group(3))}', line)
print(result)
except EOFError:
break