<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described.
<END_TASK>
<USER_TASK:>
Description:
Find Kth element in an array containing odd elements first and then even elements
Function to return the kth element in the modified array ; Finding the index from where the even numbers will be stored ; Return the kth element ; Driver code

<ASSISTANT_TASK:>
Python Code:
def getNumber(n , k ) : 
	 if(n % 2 == 0 ) : 
	 pos = n // 2 ; 
  else : 
	 pos =(n // 2 ) + 1 ; 
  if(k <= pos ) : 
	 return(k * 2 - 1 ) ; 
  else : 
	 return(( k - pos ) * 2 ) ; 
   if __name__== "__main __": 
	 n = 8 ; k = 5 ; 
 print(getNumber(n , k ) ) ; 
 
<END_TASK>
