<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described.
<END_TASK>
<USER_TASK:>
Description:
Kth character after replacing each character of String by its frequency exactly X times
Python3 program for the above approach ; Function to find the Kth character after X days ; Variable to store the KthChar ; Traverse the string ; Convert char into int ; Calculate characters ; If K is less than sum than ans = str [ i ] ; Return answer ; Given Input ; Function Call

<ASSISTANT_TASK:>
Python Code:
import math 
 def FindKthChar(Str , K , X ) : 
	 ans = ' ▁ ' 
 Sum = 0 
 for i in range(len(Str ) ) : 
	 digit = ord(Str[i ] ) - 48 
 Range = int(math . pow(digit , X ) ) 
 Sum += Range 
 if(K <= Sum ) : 
	 ans = Str[i ] 
 break 
   return ans 
  Str = "123"
 K = 9 
 X = 3 
 ans = FindKthChar(Str , K , X ) 
 print(ans ) 

<END_TASK>
