scripts/ege/Апробация 10.03.2023/12.py
2023-05-05 00:45:01 +03:00

8 lines
171 B
Python

s = "7" * 104
while "33333" in s or "777" in s:
if "33333" in s:
s = s.replace("33333", "7", 1)
else:
s = s.replace("777", "3", 1)
print(s)