a=int(input("enter the number ")):
    while (1)
        while (i < n) && ((i+arr[i]) % 2 == 0)
           i++
        while (0 <= j) && ((j+arr[j]) % 2 == 0)    
           j++
    if j <= i    
        break
    swap(arr[i], arr[j])
    print(" display the sorted number in index")
