a,b,n=map(int,input().split()) c=float(a)/b c_str=list(str(c)) index=c_str.index('.') if index+n>len(c_str): print('0') else: print(c_str[index+n])