s = "8" * 184

while "222" in s or "888" in s:
    if "222" in s:
        s = s.replace("222", "8", 1)
    else:
        s = s.replace("888", "2", 1)

print(s)

9292dce101e486ee0a4303e2e371f0be33d0682a
<mask token>

<mask token>
while '222' in s or '888' in s:
    if '222' in s:
        s = s.replace('222', '8', 1)
    else:
        s = s.replace('888', '2', 1)
print(s)

s = '8' * 184
while '222' in s or '888' in s:
    if '222' in s:
        s = s.replace('222', '8', 1)
    else:
        s = s.replace('888', '2', 1)
print(s)

s = "8" * 184

while "222" in s or "888" in s:
    if "222" in s:
        s = s.replace("222", "8", 1)
    else:
        s = s.replace("888", "2", 1)

print(s)
