Buggy python submission (verdict: Time Limit Exceeded):
import math
def q77(N, a):
    i = 0
    while True:
        b = False
        for j in range(N):
            a[j] = a[j]/2
            if a[j].is_integer():
                i += 1
                b = True
                break
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Fixed submission:
import math
def q77(N, a):
    i = 0
    o = 0
    while True:
        b = False
        for j in range(o, N):
            a[j] = a[j]/2
            if a[j].is_integer():
                i += 1
                b = True
                break
            else:
                o = j
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Buggy python submission (verdict: Time Limit Exceeded):
import math
def q77(N, a):
    i = 0
    while True:
        b = False
        for j in range(N):
            l = a[j]/2
            if l.is_integer():
                a[j] = l
                i += 1
                b = True
                break
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Fixed submission:
import math
def q77(N, a):
    i = 0
    o = 0
    while True:
        b = False
        for j in range(o, N):
            a[j] = a[j]/2
            if a[j].is_integer():
                i += 1
                b = True
                break
            else:
                o = j
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Buggy python submission (verdict: Time Limit Exceeded):
import math
def q77(N, a):
    i = 0
    while True:
        b = False
        for j in range(N):
            l = a[j]/2
            if l.is_integer():
                a[j] = l
                i += 1
                b = True
                break
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Fixed submission:
import math
def q77(N, a):
    i = 0
    o = 0
    while True:
        b = False
        for j in range(o, N):
            a[j] = a[j]/2
            if a[j].is_integer():
                i += 1
                b = True
                break
            else:
                o = j
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Buggy python submission (verdict: Time Limit Exceeded):
import math
def q77(N, a):
    i = 0
    while True:
        b = False
        for j in range(N):
            if (a[j]/2).is_integer():
                a[j] = a[j]/2
                i += 1
                b = True
                break
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))

Fixed submission:
import math
def q77(N, a):
    i = 0
    o = 0
    while True:
        b = False
        for j in range(o, N):
            a[j] = a[j]/2
            if a[j].is_integer():
                i += 1
                b = True
                break
            else:
                o = j
        if not b:
            break
    return i

N = int(input())
a = [int(i) for i in input().split()]

print(q77(N, a))