scripts/ege/Основная волна. Второй день/12.py
2023-05-05 00:45:01 +03:00

8 lines
171 B
Python
Vendored

s = "9" * 84
while "33333" in s or "999" in s:
if "33333" in s:
s = s.replace("33333", "99", 1)
else:
s = s.replace("999", "3", 1)
print(s)