# 8 - masala

n = int(input("n = "))
a = []

# massiv elementlarini kiritamiz
for i in range(n):  # 0 dan n (n kirmaydi) gacha qadam
    j = int(input(f"j{i} = "))
    a.append(j)  # joylash

juftIndex = []
for i in range(n):
    if a[i] % 2 == 0:
        juftIndex.append(i)

# kamayish tartibida saralaymiz
juftIndex.sort(reverse=True)  # reverse=True degani kamayish tartibini anglatadi
print(juftIndex)  # ekranga chqaramiz
print(f"Juft sonlar soni -> {len(juftIndex)}")

f3b37946107b41a7e2a2c048307fd7e44cf55410
<mask token>

<mask token>
for i in range(n):
    j = int(input(f'j{i} = '))
    a.append(j)
<mask token>
for i in range(n):
    if a[i] % 2 == 0:
        juftIndex.append(i)
juftIndex.sort(reverse=True)
print(juftIndex)
print(f'Juft sonlar soni -> {len(juftIndex)}')

n = int(input('n = '))
a = []
for i in range(n):
    j = int(input(f'j{i} = '))
    a.append(j)
juftIndex = []
for i in range(n):
    if a[i] % 2 == 0:
        juftIndex.append(i)
juftIndex.sort(reverse=True)
print(juftIndex)
print(f'Juft sonlar soni -> {len(juftIndex)}')

# 8 - masala

n = int(input("n = "))
a = []

# massiv elementlarini kiritamiz
for i in range(n):  # 0 dan n (n kirmaydi) gacha qadam
    j = int(input(f"j{i} = "))
    a.append(j)  # joylash

juftIndex = []
for i in range(n):
    if a[i] % 2 == 0:
        juftIndex.append(i)

# kamayish tartibida saralaymiz
juftIndex.sort(reverse=True)  # reverse=True degani kamayish tartibini anglatadi
print(juftIndex)  # ekranga chqaramiz
print(f"Juft sonlar soni -> {len(juftIndex)}")
