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