mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-25 13:03:44 +03:00
8 lines
171 B
Python
Vendored
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)
|