from math import modf a,b,n=map(int,input().split()) m=modf(a/b)[0] #取分数的小数部分,math.modf(4.25)=(0.25,4.0) m=str(m) print(m[n+1])