Buggy python submission (verdict: Runtime Error):
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    print(j)
    print(s)
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)


Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)

Buggy python submission (verdict: Runtime Error):
s = str(input())

s = [_ for _ in s]
for i in range(0, len(s)-1):
    print(s)
    if i+2 <= len(s)-1:
        if s[i] == s[i+1]:
            s[i+1] = ''.join([s[i+1], s.pop()])

if s[-1] == s[-2]:
    print(len(s) - 1)
else:
    print(len(s))

Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
s = str(input())

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if i+2 <= len(s)-1:
        if s[i] == s[i+1]:
            s[i+1] = ''.join([s[i+1], s.pop(i+2)])

if s[-1] == s[-2]:
    print(len(s) - 1)
else:
    print(len(s))

Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
s = str(input())

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if i+2 <= len(s)-1:
        if s[i] == s[i+1]:
            s[i+1] = s[i+1] + s.pop(i+2)
    
if s[-1] == s[-2]:
    print(len(s) - 1)
else:
    print(len(s))

Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
s = str(input())

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if i+2 <= len(s)-1:
        if s[i] == s[i+1]:
            s[i+1] = s[i+1] + s.pop(i+2)
            i = 0
    
if s[-1] == s[-2]:
    print(len(s) - 1)
else:
    print(len(s))

Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)

Buggy python submission (verdict: Runtime Error):
s = str(input())

s = [_ for _ in s]
for i in range(0, len(s)-1):
    print(s)
    if i+2 <= len(s)-1:
        if s[i] == s[i+1]:
            s[i+1] = s[i+1] + s.pop(i+2)
            i = 0
    
    if s[-1] == s[-2]:
        print(len(s) - 1)
    else:
        print(len(s))


Fixed submission:
s = str(input())

j = 0
count = len(s)

s = [_ for _ in s]
for i in range(0, len(s)-1):
    if j+1 <= len(s)-1:
        if s[j] == s[j+1]:
            j = j + 3
            count -= 1
        else:
            j = j + 1
            continue

print(count)