For this Question: There are N balloons numbered from 1 to N. Every balloon has an another integer value Arr[i] assigned to it where i varies from 1 to N, and i represents the number of balloon.

A balloon at an odd position (i = 1, 3, 5. ) is happy if Arr[i] is odd.
A balloon at an even position (i = 2, 4, 6. ) is happy if Arr[i] is even.

Find the number of happy balloons.The first line of the input contains a single integer N.
The second line of the input contains N singly spaced integers, Arr[1], Arr[2], Arr[3],. , Arr[N].

Constrains
1 <= N <= 200000
1 <= Arr[i] <= 1000000Output a single integer, the number of happy balloons.Sample Input
5 
1 3 4 6 7

Sample Output
3

Explanation
Happy balloons are balloons numbered 1, 4, 5.

Sample Input
5
1 2 3 4 5

Sample Output
5, I have written this Solution Code: x=int(input())
arr=input().split()
for i in range(0,x):
    arr[i]=int(arr[i])
count=0
for i in range(0,x):
    if(arr[i]%2==0 and (i+1)%2==0):
        count+=1
    elif (arr[i]%2!=0 and (i+1)%2!=0):
        count+=1
print (count), In this Programming Language: Python, Now tell me if this Code is compilable or not?