def find_Nth_Digit(p,q,N) :
    p = p % q
    for i in range(N):
        p = p * 10
        res = p // q
        p = p % q
    return res